WriteCharacter()

Syntax

Result = WriteCharacter(#File, Character.c [, Format])
Description
Write a character value to a file.

Parameters

#File The file to write to.
Character The character value to write.
Format (optional) The format of the character to write. 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 nonzero if the operation was successful or zero if it failed.

Remarks

The file must be opened using a write-capable function (i.e. not with ReadFile()).

See Also

ReadCharacter(), WriteAsciiCharacter(), WriteUnicodeCharacter(), CreateFile()

Supported OS

All

<- WriteByte() - File Index - WriteData() ->