Sign in Join
FPDoc Onlineexperiment

TTextReader class

In unit StreamEx

Text reader class.

Declaration

pascal
TTextReader = class(TObject)

Inheritance

  1. TTextReader
  2. TObject

Descends from it: TFileReader TStreamReader TStringReader

Description

TTextReader is an abstract class that provides a line-oriented reading API. It allows to read data from streams or memory blocks as if one was using regular pascal Read or ReadLn operations: the ReadLine procedure. Several descendents of this class exist which implement the reader interface for several sources of text data: TStreamReader, TFileReader, TStringReader.

See also

Properties

EofpublicCheck whether the end of the text data is returned.
EndOfStreampublic

Methods

IsEofprotectedCheck whether the end of the text data is returned.
CreatepublicInstantiate a new instance.
ResetpublicReset the reader to the start position.
ClosepublicClose the text data stream.
ReadLinepublicRead a line of text.

Inherited

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy 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.