Sign in Join
FPDoc Onlineexperiment

TBufStream.Seek procedure

Member of TBufStreamIn unit Objects

Set current position in file.

Declaration

pascal
procedure Seek(Pos: LongInt); virtual

Description

If the stream's status is stOK, then Seek sets the file position to Pos. Pos is a zero-based offset, counted from the beginning of the file.

For an example, see Seek;

Errors

In case an error occurs, the stream's status is set to stSeekError, and the OS error code is stored in ErrorInfo.

See also

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