comp.lang.ada
 help / color / mirror / Atom feed
From: Rob Norris <firstname.lastname@baesystems.com>
Subject: Re: Text Processing in Ada 95
Date: Mon, 26 Feb 2007 12:11:48 +0000
Date: 2007-02-26T12:11:48+00:00	[thread overview]
Message-ID: <vdj5u21p4dq28aph3b1u18cv2ov3fvcgnb@4ax.com> (raw)
In-Reply-To: u1wkhugmc.fsf@stephe-leake.org

On Fri, 23 Feb 2007 08:51:23 -0500, Stephen Leake <stephen_leake@stephe-leake.org> wrote:

>Rob Norris <firstname.lastname@baesystems.com> writes:
>
>> On Wed, 21 Feb 2007 18:09:09 +0000, Rob Norris
>> <firstname.lastname@baesystems.com> wrote:
>>
>>>
>>>Suppose I have a text file such as:
>>>
>> <cut>
>>
>> Thanks everyone for the input.
>> I suspected as much that I would have to do some stream_io.
>>
>> Unfortunately I can't do things any other way. The requirement is
>> for a text file :(

I think I meant in some direct_io way would not make it easier.

>Just be cause the file is "text" on the disk, doesn't mean you have to
>use Ada.Text_IO to read and write it. 
>
>Ada.Stream_IO reads and writes "text" files perfectly well. 
>
>If you were writing this program in C, you would have no choice other
>than the C equivalent of Ada.Stream_IO, and no one would claim you
>were not using "text" files.
>
>And what is a "text" file, precisely?

Well quite, the file is just a bunch of bytes that when interpretated as ASCII format gives
something humanly readable.



  reply	other threads:[~2007-02-26 12:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-21 18:09 Text Processing in Ada 95 Rob Norris
2007-02-21 19:07 ` Pascal Obry
2007-02-22 14:02   ` Larry Kilgallen
2007-02-21 20:16 ` Randy Brukardt
2007-02-22  2:45 ` Jeffrey R. Carter
2007-02-22 11:56 ` Rob Norris
2007-02-23  4:30   ` Jeffrey R. Carter
2007-02-23 13:51   ` Stephen Leake
2007-02-26 12:11     ` Rob Norris [this message]
2007-02-23  4:55 ` Steve
2007-02-23  5:19   ` Randy Brukardt
2007-02-23  7:53 ` Jacob Sparre Andersen
replies disabled

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