TextReader Members
The following tables list the members exposed by the TextReader type.
Public Constructors
Name | Description | |
---|---|---|
TextReader | Initializes a new instance of the TextReader class. |
Public Methods
Name | Description | |
---|---|---|
Close | Closes the TextReader and releases any system resources associated with the TextReader. | |
Dispose | Releases all resources used by the TextReader object and optionally releases the managed resources. | |
Peek | Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream. | |
Read | Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index. | |
ReadBlock | Reads a maximum of count characters from the current stream, and writes the data to buffer, 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. |