sbfreddie
Well-known member
I am hoping one you C gurus can help me with this issue:
When trying to open a new file for write in LittleFS it seems to want a const char for a file name. However I would like to append the date for each new file I create each day a midnight like this: datafile-mm/dd/year.
I have tried a variety of methods to do this with little success.
I tried creating a String and then adding all the characters into it and then using file.open of LittleFS, but it did not like that.
So I tried to convert the String with strcpy( FileNameChar, FileNameString.c_str() ); it did not like that ether.
I though I saw a forum post about this awhile back but could not find it.
Anyone with any Ideas?
Regards,
Ed
When trying to open a new file for write in LittleFS it seems to want a const char for a file name. However I would like to append the date for each new file I create each day a midnight like this: datafile-mm/dd/year.
I have tried a variety of methods to do this with little success.
I tried creating a String and then adding all the characters into it and then using file.open of LittleFS, but it did not like that.
So I tried to convert the String with strcpy( FileNameChar, FileNameString.c_str() ); it did not like that ether.
I though I saw a forum post about this awhile back but could not find it.
Anyone with any Ideas?
Regards,
Ed