Hello everybody!
I'm doing a project where i need to collect data from sensors and then save these data in a SD card memory; all these things are well explained in Arduino's reference guide on the website but I however found a trouble: since in my project i collect the temperature and other parameters per each day, I also need to collect them in order into the SD, making a txt file per each day. it would be beautiful if I can also make a folder for each year, with a folder for each month in it, like this: 2013/jan,feb,mar,apr,may,jun..etc and for each month 31 or 30 files(one per day).
The trouble is that in the code line for writing a directory and also for making files, you must write only const char : SD.mkdir("a/b/c") in this i'll have only three folders; SD.open("*.txt")
My question is: how I can use for example a for loop for increasing (for example an array, year[X]), for creating a new directory every year, and the same for month of course?
thanks for answering, and if this topic had already been treated, can you send me to that page?
thanks a lot.