2024-07-29 05:31 AM
Hi,
I would like to read text from a file csv and maybe display it, is it possible?
thanks
2024-07-29 05:51 AM
Yes.
2024-07-29 09:03 AM
The file would need to exist somewhere, be it an SD Card, eMMC or QSPI.
You'd need a file system, and a block driver. Something like FATFS or X-FILE
You'd need to read and parse the data in small amounts, or buffer and break into lines. Basic STDIO file handling type stuff, like on a PC application, but using f_open/f_read/f_close variants furnished by your file system
2024-07-29 09:12 AM
Hello @ab73 ,
Yes it is possible.
Just look at how to read a data file in C ("C read file" on Google).
From there you can fetch your data and display it on a textArea widget for instance.
Please find here our guide on how to display dynamic data on a textArea!
If this comment or another one answers your question, I invite you to select the most helpful comment as "best answer".
Regards,
2024-07-29 09:49 AM
File IO seems like some that would need to be part of the TouchGFX builds or demos, given the value and foot-print of such a use case?
2024-09-02 02:09 AM
Hello @ab73 ,
Have you been able to solve your problem?
If so, I invite you to select the most helpful comment as "best answer".
Regards,