file::writebyte()
Write a single byte to the opened file (binary mode)
file::writebyte(value, position)
value
(number) — Byte to be writtenposition
(number) — Position where value
will be written
boolean
— Always returns true
import fileio
f = file("data.bin", file_binary + file_write)
f.writebyte(0x0a, 0x00) ' Write 1 byte to the position 0
f.writebyte(0x0f, 0x01) ' Write 1 byte to the position 1
f.close()