-int loadFile(const char *fileName, void* data, size_t datalen)
-{
- FILE *filehandle = fopen(fileName, "rb");
- if(!filehandle) {
- prnlog("Failed to read from file '%s'", fileName);
- return 1;
- }
- fread(data,datalen,1,filehandle);
- fclose(filehandle);
- return 0;
-}