ReadCharacter()

Syntax

Number.c = ReadCharacter(#File)
Description
Read a character (1 byte in ASCII, 2 bytes in unicode) from a file.

Parameters

#File The file to read from.

Return value

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

Remarks

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

See Also

WriteCharacter(), ReadAsciiCharacter(), ReadUnicodeCharacter(), OpenFile(), ReadFile()

Supported OS

All

<- ReadByte() - File Index - ReadData() ->