From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: Preferred way to do binray I/O on standard input/output stream
Date: Sat, 24 Oct 2009 16:22:41 -0700 (PDT)
Date: 2009-10-24T16:22:41-07:00 [thread overview]
Message-ID: <087ddcf3-fc0d-4490-baba-1fdcd7b64310@m20g2000vbp.googlegroups.com> (raw)
In-Reply-To: hc0019$nc4$1@news.tornevall.net
On 25 oct, 00:57, "Jeffrey R. Carter" <spam.jrcarter....@spam.acm.org>
wrote:
> Package Ada.Text_IO.Text_Streams (ARM A.12.2) allows converting
> Ada.Text_IO.File_Type to Stream_Access and reading and writing them through the
> capabilities of streams. This allows converting standard input and output to
> Stream_Access, since Ada.Text_IO provides the functions Standard_Input and
> Standard_Output which return Ada.Text_IO.File_Type.
So I was lucky to ask about it here
There is further more a note in ARM 12.2, which says (annotated
reference) :
> NOTES
> 6 35 The ability to obtain a stream for a text file allows
> Current_Input, Current_Output, and Current_Error to be processed
> with the functionality of streams, including the mixing of text and
> binary input-output, and the mixing of binary input-output for
> different types.
> 7 36 Performing operations on the stream associated with a text file
> does not affect the column, line, or page counts.
Now I feel I've already seen this in the past, but later forget
Thanks Jeffrey
next prev parent reply other threads:[~2009-10-24 23:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-24 22:07 Preferred way to do binray I/O on standard input/output stream Hibou57 (Yannick Duchêne)
2009-10-24 22:57 ` Jeffrey R. Carter
2009-10-24 23:22 ` Hibou57 (Yannick Duchêne) [this message]
2009-10-27 0:34 ` Hibou57 (Yannick Duchêne)
2009-10-27 1:14 ` John B. Matthews
2009-10-27 2:36 ` Hibou57 (Yannick Duchêne)
2009-10-27 16:13 ` John B. Matthews
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox