StreamReader Members
The following tables list the members exposed by the StreamReader type.
Public Constructors
Name | Description | |
---|---|---|
StreamReader | Initializes a new instance of the StreamReader class for the specified file name. |
Public Properties
Name | Description | |
---|---|---|
BaseStream | Returns the underlying stream. | |
CurrentEncoding | Gets the current character encoding that the current StreamReader object is using. | |
EndOfStream | Gets a value that indicates whether the current stream position is at the end of the stream. |
Public Methods
Name | Description | |
---|---|---|
Close | Closes the StreamReader object and the underlying stream, and releases any system resources associated with the reader. | |
Dispose | Closes the underlying stream, releases the unmanaged resources used by the StreamReader, and optionally releases the managed resources. | |
Peek | Returns the next available character but does not consume it. | |
Read | Reads a maximum of count characters from the current stream into buffer, beginning at index. | |
ReadLine | Reads a line of characters from the current stream and returns the data as a string. | |
ReadToEnd | Reads the stream from the current position to the end of the stream. |