comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: Streams - copying stdin to stdout
Date: 1999/02/09
Date: 1999-02-09T00:00:00+00:00	[thread overview]
Message-ID: <uiudbdzok.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 79jgaj$cjn$1@reader1.reader.news.ozemail.net

"Chris Miller" <chrismil@ozemail.com.au> writes:

> To test the operation of Streams I wrote the following sample
> program that copies standard input to standard output :
>
<snip code>
>     while not Text_IO.End_Of_File loop
<snip more code>

> 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




  reply	other threads:[~1999-02-09  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-07  0:00 Streams - copying stdin to stdout Chris Miller
1999-02-09  0:00 ` Stephen Leake [this message]
1999-02-10  0:00   ` David Brown
1999-02-10  0:00     ` rdt
replies disabled

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