Mount Fuji Engine  0.8b
MF_API int MFFile_Read ( MFFile pFile,
void *  pBuffer,
size_t  bytes,
bool  async = false 
)

Reads data from a file.

Parameters
pFilePointer to an open file.
pBufferPointer to a buffer where the read data will be stored.
bytesNumber of bytes to read.
asyncIf true, the read will be performed asyncrenously, putting the file into a 'busy' state.
Returns
The number of bytes read.