Mount Fuji Engine  0.8b
MF_API char* MFFileSystem_Load ( const char *  pFilename,
size_t *  pBytesRead = NULL,
size_t  extraBytes = 0 
)

Load a file from the filesystem.

Parameters
pFilenameThe name of the file to load.
pBytesReadOptional pointer to a uint32 that will receive the size of the file loaded.
extraBytesNumber of extra bytes to allocate at the end of the buffer. Initialises the first extra byte to 0 (useful for appending a NULL byte to the end of text files).
Returns
A pointer to a new buffer containing the file that was loaded.