Streams for standard text files.

The StreamIO unit implements a call to reroute the input or output of a text file to a descendents of TStream.

This allows to use the standard pascal Read and Write functions (with all their possibilities), on streams.

For the definition of TStream For exception support Assign a text file to a stream.

AssignStream assigns the stream Stream to file F. The file can subsequently be used to write to the stream, using the standard Write calls.

Before writing, call Rewrite on the stream. Before reading, call Reset.

if Stream is Nil, an exception will be raised. TStream
The file one wishes to reroute through a stream. The stream that should perform the actual I/O. Return the stream, associated with a file. GetStream returns the instance of the stream that was associated with the file F using . An invalid class reference will be returned if the file was not associated with a stream. TStream The stream assigned to the file. The file one wishes to get the stream from. Stream definitions Exception support