Sign in Join
FPDoc Onlineexperiment

TBufStream.Truncate procedure

Member of TBufStreamIn unit Objects

Flush buffer, and truncate the file at current position.

Declaration

pascal
procedure Truncate; virtual

Description

If the status of the stream is stOK, then Truncate tries to flush the buffer, and then truncates the stream size to the current file position.

For an example, see Truncate.

Errors

Errors can be those of Flush or Truncate.

See also

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