comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+news@pvv.org>
Subject: Re: new_line in a put_line
Date: Thu, 5 Dec 2002 11:10:24 +0000 (UTC)
Date: 2002-12-05T11:10:24+00:00	[thread overview]
Message-ID: <slrnauud0b.d8u.randhol+news@kiuk0152.chembio.ntnu.no> (raw)
In-Reply-To: toMG9.27540$%r6.10664@nwrddc02.gnilink.net

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.�



  reply	other threads:[~2002-12-05 11:10 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02  5:36 new_line in a put_line Vlad
2002-12-02  9:47 ` Preben Randhol
2002-12-02 17:04   ` Frank J. Lhota
2002-12-05 11:10     ` Preben Randhol [this message]
2002-12-02 10:14 ` Dmitry A. Kazakov
2002-12-02 14:57 ` Matthew Heaney
2002-12-03 11:33   ` Fraser Wilson
2002-12-03 15:01     ` Dmitry A. Kazakov
2002-12-04  9:31       ` Fraser Wilson
2002-12-04 14:10         ` Dmitry A. Kazakov
2002-12-04 15:23           ` Robert A Duff
2002-12-04 16:15             ` Dmitry A. Kazakov
2002-12-04 18:11               ` tmoran
2002-12-04 20:21                 ` Simon Wright
2002-12-05  9:36                 ` Dmitry A. Kazakov
2002-12-05 22:40                   ` tmoran
2002-12-04 15:25           ` Stephen Leake
2002-12-04 16:55             ` Jeffrey Carter
2002-12-04 17:24               ` Stephen Leake
2002-12-04 17:43               ` Warren W. Gay VE3WWG
2002-12-05  1:31                 ` Jeffrey Carter
2002-12-05 18:11                   ` Warren W. Gay VE3WWG
2002-12-02 15:49 ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-12-03 11:52 Grein, Christoph
2002-12-04  9:39 ` Fraser Wilson
2002-12-04 10:03 Grein, Christoph
2002-12-05  6:16 Grein, Christoph
2002-12-05  9:44 ` Dmitry A. Kazakov
2002-12-05  6:28 Grein, Christoph
2002-12-05 14:19 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox