Reads a byte from the file stream. Returns the byte cast to an int or-1 if reading from the end of the stream.
[Visual Basic] Overrides Public Function ReadByte() As Integer [C#] public override int ReadByte(); [C++] public: override int ReadByte(); [JScript] public override function ReadByte() : int;
The byte cast to an int, or-1 if reading from the end of the stream.
Exception Type | Condition |
---|---|
IOException | The stream is closed or does not support reading. |