Skip to content

file_read_bytes()#

Syntax
file_read_bytes( path, location, offset, length, data )

Returns#

Returns the number of bytes read from the file. The file data is returned in “data”.

Parameters#

Parameter Description
path The name or filepath of the file to open relative to the directory specified by “location”
location One of “script” or “data”
offset The zero-based offset at which to begin reading
length The number of bytes to read. If < 0, the entire file after “offset” is read.
data The variable in which to store the file data