ReadCharacter()

Syntax

Result.c = ReadCharacter(#File [, Format])
Description
Read a character from a file.

Parameters

#File The file to read from.
Format (optional) The format of the character to read. It can be one of the following value:
  #PB_Ascii  : 1 byte character.
  #PB_Unicode: 2 bytes character UTF-16.
  #PB_UTF8   : multi-bytes character (default).

Return value

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

See Also

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

Supported OS

All

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