Function file::writestring()

← Back to Class file



Module fileioClass file → writestring()

Description

Write multiple bytes to the opened file (binary mode)

file::writestring(value, position)


Parameters


Return Value


Usage Example

import fileio
 
f = file("data.bin", file_binary + file_write)
f.writestring("Hello", 0x0)   ' Write 5 bytes to the position 0
f.close()