From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.55.4 with SMTP id n4mr38079330pap.20.1453373775098; Thu, 21 Jan 2016 02:56:15 -0800 (PST) X-Received: by 10.182.231.229 with SMTP id tj5mr531513obc.13.1453373775052; Thu, 21 Jan 2016 02:56:15 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h5no7483638igh.0!news-out.google.com!l1ni2658igd.0!nntp.google.com!o2no4947218iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 21 Jan 2016 02:56:14 -0800 (PST) In-Reply-To: <8760yndy7w.fsf@adaheads.sparre-andersen.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.55.213.251; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.55.213.251 References: <730fcd26-19e5-43e8-a071-5d2881d4a5bc@googlegroups.com> <8760yndy7w.fsf@adaheads.sparre-andersen.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Out_File , excess line From: AdaMagica Injection-Date: Thu, 21 Jan 2016 10:56:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29181 Date: 2016-01-21T02:56:14-08:00 List-Id: Am Donnerstag, 21. Januar 2016 11:27:17 UTC+1 schrieb Jacob Sparre Andersen= : > comicfanzine@gmail.com writes: >=20 > > Then , i just opened it in Out_file with Ada , and then manually . > > > > I haven't closed the file neither . >=20 > When an Ada program terminates, all open files are closed. >=20 > /Jacob > --=20 > recursive, adj.; see recursive See RM A.7(6) The language does not define what happens to external files a= fter the completion of the main program and all the library tasks (in parti= cular, if corresponding files have not been closed). The effect of input-ou= tput for access types is unspecified. I guess the OP is using GNAT, and this friendly compiler seems to properly = close the files upon leaving the scope of a file object.