ReadInteger()

语法

Number.i = ReadInteger(#File)
概要
Read an integer (4 bytes in 32-bit executable, 8 bytes in 64-bit executable) from a file.

参数

#File The file to read from.

返回值

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).

参阅

WriteInteger(), OpenFile(), ReadFile()

已支持操作系统

所有

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