Skip to content

TDosStream.Close

Close the file.

Declaration

Source position: objects.pp line 350

default 
  procedure Close;  Virtual;

Description

Close closes the file if it was open, and sets Handle to -1. Contrary to Done it does not clean up the instance of TDosStream

For an example, see TDosStream.Open .

Errors

None.

See also

Name Description
TDosStream.Done Closes the file and cleans up the instance.
TDosStream.Init Instantiate a new instance of TDosStream.
TStream.Close Close the stream