Hi,
I would like to open a file and read each entry in the file using a for loop. I'm thinking (Pseudo code )
Open file.
Rewind file.
start for loop based on iteration < file.ctz.size
The data is then packed into a JSON object and sent to a PC via bluetooth.
Does anyone know if this is possible please?
Thank you
Of course it's possible; nothing a bit of software can't solve!
littleFs allows you to read a block of data of any size, starting at any offset from the start of the file. This might be sufficient if your data is packed into fixed size blocks.
If you want to read "lines" from a file, you'll have to write your own code to look for the end of line characters
Most helpful comment
Of course it's possible; nothing a bit of software can't solve!
littleFs allows you to read a block of data of any size, starting at any offset from the start of the file. This might be sufficient if your data is packed into fixed size blocks.
If you want to read "lines" from a file, you'll have to write your own code to look for the end of line characters