Category: File IO
Syntax:
fileReadBytes:Int(fileHandle:Int, bytes:Byte[], count:Int)
Int
Reads count bytes from a file straight into a Byte array, in one call. Returns how many it read.
View detailed documentation online
Global sector:Byte[2352]
Local f:Int = fileReadFile("game.bin")
Local got:Int = fileReadBytes(f, sector, 2352)
Print "Read " & ToString(got) & " bytes"
fileCloseFile(f)
BambooBasic © 2026 Michael Denathorn