WriteFileCell Function

Writes a single binary cell to a file.

bool WriteFileCell(Handle hndl, int data, int size)


Handle hndl

Handle to the file.

int data

Cell to write to the file.

int size

Size of the data to read in bytes. Valid sizes are 1, 2, or 4 bytes. If the size is less than 4 bytes, the data is truncated rather than casted. That is, only the lower bits will be read.

Return Value

True on success, false on error.


Invalid Handle.