Category: File IO
Syntax:
fileWriteBytes:Int(fileHandle:Int, bytes:Byte[], count:Int)
Int
Writes count bytes from a Byte array to a file, in one call. Returns how many it wrote.
View detailed documentation online
Global data:Byte[256]
Local i:Int
For i = 0 To 255
data[i] = i
Next
Local f:Int = fileWriteFile("bytes.dat")
fileWriteBytes(f, data, 256)
fileCloseFile(f)
BambooBasic © 2026 Michael Denathorn