BinaryReader: PeekChar |
Returns the next character to be decoded from the byte stream. The position in the stream is not advanced after the read.
Public Function PeekChar ( ) As Long
This function requires the stream to support Seeking. If it does not, then -1 will always be returned.
Exception | Condition |
---|---|
EndOfStreamException | The end of the stream is reached. |
ObjectDisposedException | The stream is closed. |
IOException | An I/O error occurs. |