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-Thread: 103376,bed2755a22ee69a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!peer1.news.newnet.co.uk!213.210.46.30.MISMATCH!peernews.inweb.co.uk!zen.net.uk!dedekind.zen.co.uk!news-peer-lilac.gradwell.net!not-for-mail From: Rob Norris Newsgroups: comp.lang.ada Subject: Re: Text Processing in Ada 95 Date: Mon, 26 Feb 2007 12:11:48 +0000 Message-ID: References: X-Newsreader: Forte Free Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Host: 20.133.0.1 X-Trace: 1172491916 news.gradwell.net 756 dnews/20.133.0.1:31052 X-Complaints-To: news-abuse@gradwell.net Xref: g2news2.google.com comp.lang.ada:9549 Date: 2007-02-26T12:11:48+00:00 List-Id: On Fri, 23 Feb 2007 08:51:23 -0500, Stephen Leake wrote: >Rob Norris writes: > >> On Wed, 21 Feb 2007 18:09:09 +0000, Rob Norris >> wrote: >> >>> >>>Suppose I have a text file such as: >>> >> >> >> 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.