BinaryReader: ReadSingle

ReadSingle

Reads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.



 Public Function ReadSingle ( ) As Single

Return Values

Single -  A 4-byte floating point value read from the current stream.

Remarks

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

BinaryReader reads this data type in little-endian format.

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