[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Text reader class.
Source position: streamex.pp line 95
type TTextReader = class(TObject) |
||
public |
||
constructor Create; virtual; |
|
Instantiate a new instance. |
procedure Reset; virtual; abstract; |
|
Reset the reader to the start position. |
procedure Close; virtual; abstract; |
|
Close the text data stream. |
procedure ReadLine(); |
|
Read a line of text. |
property Eof: Boolean; [r] |
|
Check whether the end of the text data is returned. |
property EndOfStream: Boolean; [r] |
||
end; |
|
Text reader class. |
|
| | ||
TObject |
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.
|
Implement TTextReader for streams. |
|
|
Implement TTextReader for files. |
|
|
Implement TTextReader for a single string. |
|
|
Read a line of text. |