Reads a byte from the stream and advances the position within the stream by one byte.
The unsigned byte cast to a int , or -1 if at the end of the stream.
Type Reason System.IO.IOException An I/O error has occurred. NotSupportedException The stream does not support reading. ObjectDisposedException The stream is closed.
Operation
As described above.Note: Use the Stream.CanRead property to determine whether the current instance supports reading.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0