Reads a Single (a 4-byte floating point value) from the current stream and advances the current position of the stream by 4 bytes.
[Visual Basic] Overridable Public Function ReadSingle() As Single [C#] public virtual float ReadSingle(); [C++] public: virtual float ReadSingle(); [JScript] public function ReadSingle() : float;
A Single read from the current stream.
Exception Type | Condition |
---|---|
EndOfStreamException | The end of the stream has been reached. |
IOException | An I/O error occurs. |
BinaryReader Class | BinaryReader Members | System.IO Namespace