WriteAsciiCharacter()

Syntax

Result = WriteAsciiCharacter(#File, Number.a)
Description
Write an ASCII character (1 byte) to a file.

Parameters

#File The file to write to.
Number The ASCII character value to write.

Return value

Returns nonzero if the operation was successful and zero if it failed.

Remarks

Because of file buffering, this function may return successful even if there is not enough space left on the output device for the write operation. The file must be opened using a write-capable function (i.e. not with ReadFile()).

For an example see the CreateFile() function - with WriteAsciiCharacter() only an ASCII character is written, instead of a string.

See Also

ReadAsciiCharacter(), WriteUnicodeCharacter(), WriteCharacter(), CreateFile(), OpenFile()

Supported OS

All

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