#138170 - ghuldan - Mon Aug 20, 2007 4:45 pm
Hello there,
Recently i started to use fatlib and i got stuck with my poor knowledge I/O and emulator :
then ideas display :
file opened
and
Error reading from file
c = 255
Decor.tileset starts with "12096{0,0,0,0,0,0,0,0,..."
I Dldied my ds.gba with R4 driver, set ideas to use R4 driver ... i can open a file but can't read into it ...
Does anyone have any clue please ?
EDIT : after more tests it seems fseek return -1 too
Recently i started to use fatlib and i got stuck with my poor knowledge I/O and emulator :
Code: |
FILE *pFile;
char c; pFile = fopen("/Decor.tileset", "r"); if (pFile == NULL) PA_OutputText("Error loading file"); else { PA_OutputText("file opened"); fseek(pFile , 0 , SEEK_SET); c = fgetc(pFile); if (ferror (pFile)) PA_OutputText("Error reading from file"); PA_OutputText("c = %d", c); } |
then ideas display :
file opened
and
Error reading from file
c = 255
Decor.tileset starts with "12096{0,0,0,0,0,0,0,0,..."
I Dldied my ds.gba with R4 driver, set ideas to use R4 driver ... i can open a file but can't read into it ...
Does anyone have any clue please ?
EDIT : after more tests it seems fseek return -1 too