[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TBufStream.Open

Open the file if it is closed.

Declaration

Source position: objects.pp line 350

procedure TBufStream.Open(

  OpenMode: Word

); virtual;

Description

If the stream's status is stOK, and the stream is closed then Openre-opens the file stream with mode OpenMode. This call can be used after a Closecall.

For an example, see TDosStream.Open.

Errors

If an error occurs when re-opening the file, then Statusis set to stOpenError, and the OS error code is stored in ErrorInfo

See also

TStream.Open

  

Open the stream

TBufStream.Close

  

Flush data and Close the file.