Click or drag to resize
BinaryReaderReadSingle Method
Reads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual float ReadSingle()

Return Value

Type: Single
A 4-byte floating point value read from the current stream.
Exceptions
ExceptionCondition
EndOfStreamExceptionThe end of the stream is reached.
ObjectDisposedExceptionThe stream is closed.
IOExceptionAn I/O error occurs.
See Also