|
我现在在文本中写入一行字都可以,但就是写入老是前面的内容。在网上搜索说用f_lseek函数可以换行,但用了还是不行。代码如下:
result = f_open(&file, "armfly.txt", FA_CREATE_ALWAYS | FA_WRITE);
f_lseek(&file,f_size(&file));
result = f_write(&file, "FatFS Write Demowww.armfly.com \r\n", 34, &bw);
请高手指教。 |
|