2019-12-18 11:27 PM
I want to write data to already created file in sd card
I have tried use of FA_OPEN_APPEND
I am not able to write data in that file
Best Regards
Dipak Garasiya
2019-12-20 08:57 PM
Any One ,Help me out
2019-12-21 02:36 AM
Getting errors?
Seeking to the end of the files?
What is happening?
Posted examples of adding line to a log file to the forum previously, look at those.
2019-12-21 08:04 AM
Had this for incrementation updating
2019-12-23 01:43 AM
Thanks for replying ,
that working fine
and ofcourse i have another method which i am sharing with you is given below
if(f_open(&SDFile, "sdtest.txt", FA_OPEN_APPEND | FA_WRITE) == FR_OK)
{
int len = f_size(&SDFile);
if(len != 0 ) len+=2;
f_lseek(&SDFile,len);
res = f_write(&SDFile, wtext, sizeof(wtext), (void *)&byteswritten);
if((byteswritten > 0) && (res == FR_OK))
{
printf("SD Card written successfully \n\r");
f_close(&SDFile);
}
}
Thanks for helping
2019-12-28 12:59 AM
Thanks for supporting