ReadInteger()

Syntax

Number.i = ReadInteger(#File)
Description
Read an integer (4 bytes in 32-bit executable, 8 bytes in 64-bit executable) from a file, starting at the current file position.

Parameters

#File The file to read from.

Return value

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

Remarks

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

See Also

WriteInteger(), OpenFile(), ReadFile(), Loc()

Supported OS

All

<- ReadFloat() - File Index - ReadLong() ->