file_asc_write (
var handle, var byte)
Writes a single byte into the file with the given handle.
Parameters:
handle |
File handle. |
byte |
Number between 0 and 255. |
Remarks:
The file must be open for writing or appending.
Example:
var fhandle = file_open_append ("test.txt");
file_asc_write(fhandle,65); // "A" is added to the end of the file
file_asc_write(fhandle,97); // "Aa" is added to the end of the file
file_close (fhandle);
See also:
file_open_read,
file_open_write,
file_open_append, file_close,
file_var_write, file_var_read,
file_str_write, file_str_read,
file_chr_read, file_asc_read
► latest
version online