TerminalReader class

TerminalReader class

Provides reading from a text stream.

The TerminalReader type exposes the following members:

Methods

MethodDescription
readReads the next character from the text reader and advances the character position by one character.
readReads a specified maximum number of characters from the current reader and writes the data to a buffer,
beginning at the specified index.
read_to_endReads all characters from the current position to the end of the text reader and returns them as one string.
read_lineReads a line of characters from the text reader and returns the data as a string.
closeCloses the TextReader and releases any system resources associated with the TextReader.

See Also