[Overview][Procedures and functions] |
Assign a text file to a stream.
Source position: streamio.pp line 21
procedure AssignStream( |
var F: Textfile; |
Stream: TStream |
); |
F |
|
The file one wishes to reroute through a stream. |
Stream |
|
The stream that should perform the actual I/O. |
AssignStreamassigns the stream Streamto file F. The file can subsequently be used to write to the stream, using the standard Writecalls.
Before writing, call Rewriteon the stream. Before reading, call Reset.
if Streamis Nil, an exception will be raised.
|
Return the stream, associated with a file. |