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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a046ce7f5ee1fa51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-02 09:04:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snf1!news.gtei.net!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc02.gnilink.net.POSTED!53ab2750!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: Subject: Re: new_line in a put_line X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Mon, 02 Dec 2002 17:04:25 GMT NNTP-Posting-Host: 141.157.181.127 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc02.gnilink.net 1038848665 141.157.181.127 (Mon, 02 Dec 2002 12:04:25 EST) NNTP-Posting-Date: Mon, 02 Dec 2002 12:04:25 EST Xref: archiver1.google.com comp.lang.ada:31348 Date: 2002-12-02T17:04:25+00:00 List-Id: "Preben Randhol" wrote in message news:slrnaumb0a.en.randhol+news@kiuk0152.chembio.ntnu.no... > Vlad wrote: > Either use ASCII.LF > > Like > > Put ("Hello Word" & ASCII.LF & "Anybody out there?" & ASCII.LF); > > or There is no one llne terminator used by all operating systems. The Microsoft OS's use the character sequence (ASCII.CR, ASCII.LF) to end a line. The Mac OS uses ASCII.CR. And VMS uses an entirely different way of indicating the end of a text line (basically, each line has a prefix indicating the number of characters in the line). For this reason, there is no guarantee that writing ASCII.LF will create a new line on all platforms. The right way to get a new line is to call New_Line. Of course, this does not in and of itself solve the poster's original problem, but as indicated elsewhere in this thread, the right solution is to use a separate task or protected object for writing to the file.