Go Down

Topic: read and delete one line of txt file (Read 1 time) previous topic - next topic

cantore

Apr 15, 2011, 04:51 pm Last Edit: Apr 18, 2011, 09:32 am by cantore Reason: 1
Hi, I have a text file on the sd composed by many lines. I wanto to read a line every loop cicle of a while statement , and after delete it. The while will end when avaible() returns true, in other words when there are no line left on the sd. Do you have any suggestion? Thanks

AWOL

Could you maybe run the question through a translator?
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

robtillaart

deleting line is very costly, you might better remember the position you are between reading and when you reached the end of file delete the whole file at once.

Rob Tillaart

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

Go Up