How to show a text from a file (FatFs)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 7: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.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 8: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 8: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 4:34 AM
@Community member thank you, for this approach.
