Mono Class Library: Overview

System.IO.StreamReader: Method Members

The methods of System.IO.StreamReader are listed below. For a list of all members, see the StreamReader Members list.

See Also: Inherited members from System.IO.TextReader

Public Methods

override
Close()
Closes the current instance of System.IO.StreamReader , releasing any system resources associated with it.
DiscardBufferedData()
Allows a System.IO.StreamReader to discard its buffered data.
override
Peek() : int
Returns the next character in the underlying stream without advancing the position of the System.IO.StreamReader in the stream.
override
Read() : int
Reads the next character from the input stream and advances the character position by one character.
override
Read(char[], int, int) : int
Reads a maximum of count characters from the current stream into buffer, beginning at index.
override
ReadLine() : string
Reads a line of characters from the current stream and returns the data as a string.
override
ReadToEnd() : string
Reads the stream from the current position to the end of the stream.

Protected Methods

override
Dispose(bool)
Releases the unmanaged resources used by the System.IO.StreamReader and optionally releases the managed resources.