TextReader: Read

Read

Reads the next character from the input stream and advances the character position by one character.



 Public Function Read ( ) As Long

Return Values

Long -  The next character from the input stream, or -1 if no more characters are available.

Remarks

If the returned value is not -1 then use the Char.ConvertFromInt32 method to convert to an Integer character.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe TextReader is closed.

See Also

Project CorLib Overview

Class TextReader Overview