Function file::writebyte()

← Back to Class file



Module fileioClass file → writebyte()

Description

Write a single byte to the opened file (binary mode)

file::writebyte(value, position)


Parameters


Return Value


Usage Example

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()