Extracting array content from last filename of the SD card

Hi all. I'm a newbie and really needs some help here.

I'm currently working on a project which is the automated pressure sensor monitoring system.
My current code is only able to record the sensors reading and log it into the SD card.
The problem is I don't know exactly how to read back the last saved file and extract data of the certain cell ranges so that I can print out the final average value (on the LCD display 16X2) from each sensor.

I had tried to modify the provided "Listfiles" examples code, but still could not solve it.

Your help is much appreciated. Thank you.

Post your code and a drawing of your circuit
Clarify what you call the last file. How would a human know it’s the last one?

Assuming that you closed the last file before turning the power off on the Arduino, you can read the last file on your PC. And there are NO cell ranges of data written to your SD card, only bytes of data. What do you get on your PC?

For usual you don't have date/time of files on an Arduino.
You could use a timestamp as filename. Then you know out of the filename what is the newest / oldest file.

Yes most of the time people do not use the possibility of setting the file time info

But with SdFat You could.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.