ReadWord()

语法

Number.w = ReadWord(#File)
概要
Read a word (2 bytes) from a file.

参数

#File The file to read from.

返回值

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

Remarks

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

参阅

WriteWord(), OpenFile(), ReadFile()

已支持操作系统

所有

<- ReadUnicodeCharacter() - File Index - TruncateFile() ->