ReadFile Function

Reads binary data from a file.

int ReadFile(Handle hndl, any[] items, int num_items, int size)


Handle hndl

Handle to the file.

any[] items

Array to store each item read.

int num_items

Number of items to read into the array.

int size

Size of each element, in bytes, to be read. Valid sizes are 1, 2, or 4.

Return Value

Number of elements read, or -1 on error.