Reads characters from the underlying stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual int Read()
Return Value
Type:
Int32The next character from the input stream, or -1 if no characters are currently available.
Exceptions Exception | Condition |
---|
IOException | An I/O error occurs. |
ObjectDisposedException | The stream is closed. |
See Also