Skip to main content
lowpowermcu
Associate III
February 16, 2013
Question

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

  • February 16, 2013
  • 1 reply
  • 1021 views
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?
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    February 17, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..