Class TTextReader
Unit
Declaration
type TTextReader = class(TTextReaderWriter)
Description
Read any stream like a text file. You can read an arbitrary TStream instance, or you can read an URL. Reading from URL supports all URL protocols supportted by the Castle Game Engine engine (see https://castle-engine.io/manual_network.php ).
Includes comfortable Readln routine to read line by line (lines may be terminated in any OS convention). Includes comfortable Read to read next non-whitespace characters, ReadInteger to read next integer and such.
Do not use the underlying stream once you started reading it with this class. We will move the position within this stream ourselves.
Hierarchy
- TObject
- TTextReaderWriter
- TTextReader
Overview
Methods
constructor Create(const Url: String); overload; |
|
function Readln: string; |
|
function Read: string; |
|
function ReadInteger: Integer; |
|
function ReadSingle: Single; |
|
function ReadVector3: TVector3; |
|
function ReadVector3Single: TVector3; deprecated 'use ReadVector3'; |
|
function Eof: boolean; |
Description
Methods
constructor Create(const Url: String); overload; |
|
Download and open a file. |
function Readln: string; |
|
Read next line from Stream. Returned string does not contain any end-of-line characters. |
function ReadInteger: Integer; |
|
Read the next Integer from stream. Reads next string of non-whitespace characters, like Read, and then converts it to Integer. Exceptions raised
|
function ReadSingle: Single; |
|
Read the next Single value from stream. Reads next string of non-whitespace characters, like Read, and then converts it to Single. Exceptions raised
|
function ReadVector3: TVector3; |
|
Read the next vector from a stream, simply reading 3 Single values in sequence. Exceptions raised
|
function ReadVector3Single: TVector3; deprecated 'use ReadVector3'; |
|
Warning: this symbol is deprecated: use ReadVector3 This item has no description. |
function Eof: boolean; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.