BinaryReader: ReadBoolean

ReadBoolean

Reads a Boolean value from the current stream and advances the current position of the stream by one byte.



 Public Function ReadBoolean ( ) As Boolean

Return Values

Boolean -  True if the byte is nonzero; otherwise, False.

Remarks

BinaryReader does not restore the file position after an unsuccessful read.

Exceptions

Exception Condition
EndOfStreamExceptionThe end of the stream is reached.
ObjectDisposedExceptionThe stream is closed.
IOExceptionAn I/O error occurs.

See Also

Project CorLib Overview

Class BinaryReader Overview