ReadWord()

Syntax

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

Parameters

#File The file to read from.

Return value

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

See Also

WriteWord(), OpenFile(), ReadFile()

Supported OS

All

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