ReadByte

Reads a single byte from the stream.

Throws a StreamNotOpenException if the stream is not open for reading.

Syntax

public int ReadByte()

Returns

ReadByte returns a byte of data read from the stream, or -1 if the end of the stream has been reached.