Sign in Join
FPDoc Onlineexperiment

TFileReader class

In unit StreamEx

Implement TTextReader for files.

Declaration

pascal
TFileReader = class(TTextReader)

Inheritance

  1. TFileReader
  2. TTextReader
  3. TObject

Description

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

See also

Methods

IsEofprotectedCheck if the end of the file is reached.
CreatepublicCreate a new instance of TFileReader for a disk file.
DestroypublicRemove the TFileReader instance from memory.
ResetpublicReset the stream to its original position.
ClosepublicClose the file.
ReadLinepublicRead a line of text.

Inherited

From TTextReader (2)

EndOfStream Eof

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.