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-7-bit X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-17 05:53:39 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Replacement for Text_IO? (was Re: C bug of the day) Date: 17 Jun 2003 07:53:33 -0500 Organization: Berbee Information Networks Corporation Message-ID: <9dZdRP2wlmvF@eisner.encompasserve.org> References: <1054751321.434656@master.nyc.kbcfp.com> <20030611114948.00000bcc._elh_@_terma_._com_> <20030611125000.000018b5._elh_@_terma_._com_> <3EEE464A.D48A8E2D@somewhere.nil> In article , Dale Stanbrough writes: > Georg Bauhaus wrote: > >> What's wrong with streams? > > Streams seem to be at the wrong level of abstraction. > If you want to write out text files from an Ada program, how you > do you an end of line character portably using streams? If you want to do _portable_ text IO, you should not make the mistake of thinking that the end of line is represented by a character. > Processing text files in text_io is really very simple stuff, and > easy to read (and it could be better if there were a function > get_line...). I'm not sure that Streams would make for easy reading, > unless it gets layered with a host independent Text_IO like feature > (perhaps we could call it Ada.Next_IO ? :-) If it were host-independent, the resulting files would not be compatible with other programming languages on some platforms.