Skip to content

TFileStream

[Properties (by Name)][Methods (by Name)][Events (by Name)]

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

Declaration

Source position: classesh.inc line 1181

Type
  TFileStream = class (THandleStream)
  private
    FFileName : string;
  public
    constructor Create(const AFileName: string; Mode: Word);
    constructor Create(const AFileName: string; Mode: Word; 
                      Rights: Cardinal);
    destructor Destroy;  Override;
    FileName : string;
  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.

Members

Member Type Visibility Description
Create Method public Creates a file stream.
Destroy Method public Destroys the file stream.
FFileName Field private
FileName Property public The filename of the stream.

Inheritance

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

See also

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