This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fseek() question with SD card

Hello!
Is fseek() fully supported on SDcard with RL-FLASH 4.12?

fp = fopen ("test.txt","ab");
printf("pos:%d\n",ftell(fp));
fseek(fp,4,SEEK_SET);
printf("pos:%d\n",ftell(fp));
fprintf(fp,"ABCD");
fclose(fp);
output:
pos:12
pos:4
but it only appends ABCD to the end of the file.

0