char filename = "LO00000.CSV";
for (uint32_t i = 0; i < 100000; i++)
filename = ((i / 100000UL) % 10) + ‘0’;
filename = ((i / 10000) % 10) + ‘0’;
filename = ((i / 1000) % 10) + ‘0’;
filename = ((i / 100) % 10) + ‘0’;
filename = ((i / 10) % 10) + ‘0’;
filename = (i % 10) + ‘0’;
After the first few thousand files it's going to take a long time to find the next available filename.
Note: The FAT16 file system can only have 512 files/folders in the root directory. Is there a FAT32 library for the Arduino?
thank you @ johnwasser for showing me how the for loop worked and by that extension what I need to do to manipulate the code to do what I want.
Please don’t ask the hobby forum open-source community fir free engineering help on your for profit venture unless you plan to return here to share the profits.
What you are doing is like keeping costs low at your restaurant by getting your soup from the free soup kitchen and your bread from the free bread line and then selling it. It’s despicable.
If it is for a company and can’t be shared then hire an engineer and make him sign an NDA. Don’t be one of those low lifes who run so many good engineers out of work by cheaping out and trying to get it done for free.
I am not a private company. I am actually an aspiring electrical engineer that is about to graduate. I didn’t realize that the arrays must be manipulated as well. A company has shown interest in my project and I will be presenting a go to market strategy within a months time to them. I have programmed everything else in my project just needed a little help from the forum. I have also paid for most everything myself on a part time students budget. Instead what I get this bs sent to like I’m some sort of unethical shark preying on hobbyists. People like you are the reason so many don’t use the forum and stay in the dark. Today I learned something no thanks to you.