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

TFileStream.Destroy

Destroys the file stream.

Declaration

Source position: classesh.inc line 663

public destructor TFileStream.Destroy; override;

Description

Destroycloses the file (causing possible buffered data to be written to disk) and then calls the inherited destructor.

Do not call destroydirectly, instead call the Freemethod. Destroy does not check whether Selfis nil, while Freedoes.

See also

TFileStream.Create

  

Creates a file stream.