cancel
Showing results for 
Search instead for 
Did you mean: 

Proper way to detect end of file using Fatfs???

lowpowermcu
Associate II
Posted on February 17, 2013 at 00:39

Hi all,

I am using fatfs as file system and I need to handle the end of file but I didn't file something equivalent to

while

(!

feof
(golf))
In an example available on fatfs, the end of file is detected when the read data is 0. Is there a recommanded way to detect the end of file?
1 REPLY 1
Posted on February 17, 2013 at 01:35

http://elm-chan.org/fsw/ff/en/eof.html

That or delve into the FIL structure.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..