The byte, cast to an 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.
This method overrides Stream.ReadByte.
Use the FileStream.CanRead property to determine whether the current instance supports reading. For additional information, see Stream.CanRead.