Sign in Join
FPDoc Onlineexperiment

GetStream function

In unit StreamIO

Return the stream, associated with a file.

Declaration

pascal
function GetStream(var F: TTextRec): TStream

Arguments

F

The file one wishes to get the stream from.

Function result

The stream assigned to the file.

Description

GetStream returns the instance of the stream that was associated with the file F using AssignStream.

Errors

An invalid class reference will be returned if the file was not associated with a stream.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.