Reads the next byte from the current stream and advances the current position of the stream by 1 byte.
[Visual Basic] Overridable Public Function ReadByte() As Byte [C#] public virtual byte ReadByte(); [C++] public: virtual unsigned char ReadByte(); [JScript] public function ReadByte() : Byte;
The next byte read from the current stream.
Exception Type | Condition |
---|---|
EndOfStreamException | The end of the stream has been reached. |
IOException | An I/O error occurs. |
BinaryReader Class | BinaryReader Members | System.IO Namespace