2020-09-08 07:03 AM
I would like to show a text from a .txt file (FatFs).
The .txt file contains a log of the HMI, so it gets every time bigger.
Is there any solution to show any dynamic text?
I can do it with a wild card and set the buffer size very high. But someday the text from the file will get bigger then the wildcard buffer.
Regards
Dejan
Solved! Go to Solution.
2020-09-08 08:33 AM
Write something that is adaptive and capable of working with a small memory footprint.
Change the paradigm so you don't need to load the whole file.
Perhaps be capable of pulling in lines, consider multiple passes allowing you to count lines, and record line start offsets.
Determine how many lines you need to display.
FatFs provides f_size() to determine size of file to process
2020-09-08 08:33 AM
Write something that is adaptive and capable of working with a small memory footprint.
Change the paradigm so you don't need to load the whole file.
Perhaps be capable of pulling in lines, consider multiple passes allowing you to count lines, and record line start offsets.
Determine how many lines you need to display.
FatFs provides f_size() to determine size of file to process
2020-09-09 04:34 AM
@Community member thank you, for this approach.