file_bin_write_byte

Writes a byte of data to the file with the given file id.

Syntax:

file_bin_write_byte(binfile, byte);


Argument Description
binfile The ID of the file to write to.
byte The data to write.


Returns: real.


Description

This function will write a byte of data to the file identified by the file ID at the current write position. You supply the file ID value, as returned by the function file_bin_open and the byte of data to write.

NOTE: These functions do not work when the target module is HTML5.


Example:

file_bin_write_byte(file, data);

This would write a byte to the selected file.


Back: Binary Files
Next: file_bin_read_byte
© Copyright YoYo Games Ltd. 2018 All Rights Reserved