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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c5a264f8d59bc01b X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Streams - copying stdin to stdout Date: 1999/02/09 Message-ID: #1/1 X-Deja-AN: 442561533 References: <79jgaj$cjn$1@reader1.reader.news.ozemail.net> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1999-02-09T00:00:00+00:00 List-Id: "Chris Miller" writes: > To test the operation of Streams I wrote the following sample > program that copies standard input to standard output : > > while not Text_IO.End_Of_File loop > The problem is that the input file has 5 bytes, which are the characters > "test" plus the line feed added by vi, however the output file is only > 4 bytes. I suspect you want Streams_IO.End_Of_File. Text_IO adds semantics about line and page endings, which will get in your way. -- Stephe