ReadFileCell Function

Reads a single binary cell from a file.

int ReadFileCell(Handle hndl, int &data, int size)


Handle hndl

Handle to the file.

int& data

Variable to store the data read.

int size

Size of the data to read in bytes. Valid sizes are 1, 2, or 4 bytes.

Return Value

Number of elements read (max 1), or -1 on error.


Invalid Handle.