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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a046ce7f5ee1fa51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-05 03:10:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: new_line in a put_line Date: Thu, 5 Dec 2002 11:10:24 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1039086624 20093 129.241.83.78 (5 Dec 2002 11:10:24 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 5 Dec 2002 11:10:24 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:31459 Date: 2002-12-05T11:10:24+00:00 List-Id: Frank J. Lhota wrote: > 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. It works in Linux, the rest is left for a task for the reader ;-) The point is that if the OS is not specified I assume they use the same as I do. :-) > 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. I misunderstood the original question. I assumed he used a protected object. -- Preben Randhol ------------------------ http://www.pvv.org/~randhol/ -- �1984 is soon coming to a computer near you.�