ReadFloat()

Syntax

Number.f = ReadFloat(#File)
Description
Read a float (4 bytes) from a file.

Parameters

#File The file to read from.

Return value

Returns the read float value or zero if there was an error.

Remarks

For an example of how to read from a file, see the ReadFile() function - with ReadFloat() only a float value is read, instead of a complete line (string).

See Also

WriteFloat(), ReadDouble(), OpenFile(), ReadFile()

Supported OS

All

<- ReadFile() - File Index - ReadInteger() ->