Reads a byte from the file and advances the read position one byte.
The byte cast to a int, or -1 if the end of the stream has been reached.
Type Reason ObjectDisposedException The current stream is closed. NotSupportedException The current stream does not support reading.
Note:Use the FileStream.CanRead property to determine whether the current instance supports reading. For additional information, see Stream.CanRead.
This method overrides Stream.ReadByte.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0