TextReader

TextReader


Provides an interface to read text characters from a stream.


Public:

Methods:

NameDescription
 CloseReader Closes the current reader.  
 Equals Returns if the value is equal to this instance of TextReader  
 GetHashCode Returns a pseudo-unique number that identifies this object instance.  
 Peek Returns the next character from the stream without advancing to the next characters.  
 Read Reads the next character from the input stream and advances the character position by one character.  
 ReadBlock Reads a maximum of Count characters from the current stream, and writes the data to Chars, beginning at Index.  
 ReadLine Reads a line of characters from the current stream and returns the data as a string.  
 ReadToEnd Reads all characters from the current position to the end of the TextReader and returns them as one string.  
 ToString Returns a string representation of this instance.  

See Also

Project CorLib Overview

Class TextReader Overview

TextReaderStatic

StreamReader

StringReader