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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Out_File , excess line Date: Fri, 22 Jan 2016 12:28:14 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <810bf4de-0c6f-48bf-8c20-e841d5a666a3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 22 Jan 2016 12:28:14 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="11588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NVVTI5DSuGfrmyb5u2w55E8wO+5YjIuk=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:ZjOhD3+JYPP/xGCEUHR47MjcXvs= Xref: news.eternal-september.org comp.lang.ada:29196 Date: 2016-01-22T12:28:14+00:00 List-Id: On Thu, 21 Jan 2016 09:30:47 -0800, comicfanzine wrote: > It's definetely a Out_file mode issue . > > When i use the In_file or Append_file mode , there is no excess line > when i open the file manually after program's end . Perhaps it's not just an Out_File issue but specifically an Ada.Text_IO Out_File issue. If you Create/Close a file using one of the other IO packages, Direct_IO or Sequential_IO for example, what happens? I see no reason why either of these would add text to the end of a file. If that gives you the desired behaviour, perhaps you can work around by re-opening for Append with the Ada.Text_IO package? -- Brian