file_bin_write_byte

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.

 

Syntax:

file_bin_write_byte(binfile, byte);

ArgumentTypeDescription
binfileBinary File IDThe ID of the file to write to.
byteRealThe data to write.

 

Returns:

Real

 

Example:

file_bin_write_byte(file, data);

This would write a byte to the selected file.