File bin write byte

Explanation
If there is alreadly data at the current position, this function will simply overwrite it. Since the maximum value of a byte is 255, to write values larger than that you will need to write bytes next to each other that add up to the number you need.

Example
//Write a 2 byte number to a file var number = 1024; var file = file_bin_open("data.bin",1); file_bin_write_byte(file,number&$FF); file_bin_write_byte(file,(number>>8)&$FF); file_bin_close(file);