MivaScript Builtin Function, Miva Merchant 9+
file_read_bytes( path, location, offset, length, data ) <mvt:assign name="g.return_value" value="file_read_bytes( path, location, offset, length, data )" />
Reads a portion of the file specified by "path" and "location" into "data". Returns the number of bytes read, which may be less than "length", if an attempt was made to read past the end of the file, or -1 on error.
The name or filepath of the file to open relative to the directory specified by "location"
One of "script" or "data"
The zero-based offset at which to begin reading
The number of bytes to read. If < 0, the entire file after "offset" is read.
The variable in which to store the file data