Skip to content

TFileReader

Implement TTextReader for files.

Declaration

Source position: streamex.pp line 153

type

  TFileReader = class(TTextReader)
  public
    constructor Create(const AFileName: TFileName; AMode: Word; 
                  ARights: Cardinal; ABufferSize: Integer);
    constructor Create(const AFileName: TFileName; AMode: Word; 
                  ABufferSize: Integer);
    constructor Create(const AFileName: TFileName; ABufferSize: Integer);
    constructor Create(const AFileName: TFileName);
    destructor Destroy;
    procedure Reset;
    procedure Close;
    procedure ReadLine; overload;
  end;

Description

TFileReader is a TTextReader descendent that takes a file on disk as the source of text data.

Methods

Member Visibility Description
Close public Close the file.
Create public Create a new instance of TFileReader for a disk file.
Destroy public Remove the TFileReader instance from memory.
ReadLine public Read a line of text.
Reset public Reset the stream to its original position.
See all Methods

See also

Name Description
TStreamReader Implement TTextReader for streams.
TTextReader Text reader class.