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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,db1e3158636a30f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-16 12:30:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Fill string with multiple lines from standard_input Date: 16 Aug 2002 12:30:11 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0208161130.6c77138c@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1029526212 31335 127.0.0.1 (16 Aug 2002 19:30:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Aug 2002 19:30:12 GMT Xref: archiver1.google.com comp.lang.ada:28135 Date: 2002-08-16T19:30:12+00:00 List-Id: "chris.danx" wrote in message news:... > Vincent Smeets wrote: > > > I think that Stream_IO won't do any input processing, but with Stream_IO, I > > can only read from a file, not from Standard_Input! > > Standard_Input is a file of sorts. Check the RM for more details. Yeah, but its an Ada.Text_IO.File_Type. Stream_IO can only deal with files it can open by name itself. What we don't have here is a reason why the input processing that Ada.Text_IO.Text_Streams is doing to him is a problem. The only reason I could think of is that it actually contains data rather than text. This may sound a bit cheesy, but its exactly what a lot of Unix programs like gunzip do. So the person trying to rewrite Linux in Ada might stumble over this issue. :-) -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/~dennison/Ted/TED.html