So i want to check if the loggings are written on the SD card , by checking the number of lines in the fileIS there a simple way or a function , how to check this..
The file size before logging will be a probleem, when software has resetted. Then i do not know the size anymore
The arduino is restarting after that, so no values are known
If i open the file, it would be nice bY asking position, how many lines are written(lines do not have to samen size).
By reading, file.position() want info i get?
Not only if bedt logging wad written
QuoteBy reading, file.position() want info i get?The location where you will read or write, depending on the mode of the file. A file opened for write has the write point positioned at the end of the file, so file.position will tell you the number of bytes in the file.
think you mean append mode?
but how can i use it for reading number of lines then?