Pages: [1]   Go Down
Author Topic: SDFatLib - How to read line by line from ending of the file ?  (Read 1229 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13478
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Can you post a few records / lines from the file ?
Logged

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: