Skip to content

TFileStream

Stream that stores its data in a named file on disk.

Declaration

Source position: classesh.inc line 1597

type

  TFileStream = class(THandleStream)
  public
    constructor Create(const AFileName: string; Mode: Word);
    constructor Create(const AFileName: string; Mode: Word; 
                  Rights: Cardinal);
    destructor Destroy;
    function Flush : Boolean;
    property FileName: string; {r}
  end;

Description

TFileStream is a TStream descendant that stores or reads it's data from a named file in the file system of the operating system.

To this end, it overrides some of the methods in TStream and implements them for the case of files on disk, and it adds the FileName property to the list of public properties.

Properties

Member Visibility Description
FileName read only public The filename of the stream.
See all Properties

Methods

Member Visibility Description
Create public Creates a file stream.
Destroy public Destroys the file stream.
Flush public
See all Methods

See also

Name Description
TFileStream.Create Creates a file stream.
TStream Base class for streams.