ReadAsciiCharacter()

Syntax

Number.a = ReadAsciiCharacter(#File)
Description
Read an ASCII character (1 byte) from a file, starting at the current file position.

Parameters

#File The file to read from.

Return value

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

Remarks

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

See Also

WriteAsciiCharacter(), ReadUnicodeCharacter(), ReadCharacter(), OpenFile(), ReadFile(), Loc()

Supported OS

All

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