A.12.2 The Package Text_IO.Text_Streams
The package Text_IO.Text_Streams provides a function
for treating a text file as a stream.
The library package
Text_IO.Text_Streams has the following declaration:
Global => in out synchronized is
Stream_Access is access all
Stream (File : in
The Stream function has the same effect as the corresponding
function in Streams.Stream_IO.
NOTE 1 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.
NOTE 2 Performing operations on the
stream associated with a text file does not affect the column, line,
or page counts.
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe