Go Down

Topic: SDFatLib - How to read line by line from ending of the file ? (Read 1 time) previous topic - next topic

anon10500

A sensor application appends some data line by line at a certain interval.

Now I am going to plot some charts on a GLCD therefore I need to read sensor data but only the last 100 lines. How can I accomplish this beside scanning for newline chars ?

Thanks.

PaulS

Quote
How can I accomplish this beside scanning for newline chars ?

That IS how you accomplish it.

Unless the records are fixed length. Then, you might be able to set the read point within the file. Of course, you'd have to know how big the file is.

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up