#79416 - sofakng - Thu Apr 13, 2006 3:13 pm
It looks like DualiS has the most complete FAT support, but I'm having a problem. What happens is that my file is written successfully, but then if I go to read it I get an error...
Here is example code:
Here is example code:
Code: |
FAT_FILE *fp = FAT_fopen("jjk.txt", "w"); // open the file char buf[] = "Hello World"; int bufsize = strlen(buf); int bytesWritten = FAT_fwrite(buf, 1, bufsize, fp); // write the data FAT_fclose(fp); FAT_FILE * fp2 = FAT_fopen("jjk.txt", "r"); // FP = 0 <-- ERROR! |