Show contents 

IO > IO Assembly Interfaces > ITextReader

ITextReader

Assembly: IO;

Description

The ITextReader interface contains properties and methods that are used to read text data.

Inheritance Hierarchy

ITextReader

Comments

To read data saved in the text format, initialize the stream linked to the place, from which data will be read. The following streams are available:

Pass the created stream to the constructor of the TextReader type. On working with the constructor the object is created that enables the user to read data in the text format. Use the Encoding property to specify the encoding, in which data is read. After that it is possible to read data by using various methods of the ITextReader interface. The Eof property enables the user to control data reading and determine when all data is read.

Properties

  Property name Brief description
Encoding

The Encoding property determines a text encoding to read from a file.
Eof

The Eof property returns whether end of a file text is reached.
WordDelimiters

The WordDelimiters property determines a delimiter between words while reading a text file.

Methods

  Method name Brief description
ReadBoolean

The ReadBoolean method reads a logical value from a text file.
ReadChar

The ReadChar method reads characters from a text file.
ReadDateTime

The ReadDateTime method reads date and time from a text file.
ReadDouble

The ReadDouble method reads real numbers from a text file.
ReadInteger

The ReadInteger method reads an integer value from a text file.
ReadLine

The ReadLine method reads a character string from a text file.
ReadString

The ReadString method reads a character string of the specified length.
ReadToEnd

The ReadToEnd method reads a text file as one character string.
ReadWord

The ReadWord method reads words taking into account delimiters.

See also:

IO Assembly Interfaces