Hello community,
I'd like to know how I can number files, created by a programm. I imagined it like this:
Every time the programm creates a file it counts how many there are already in the directory and saves it to a variable (let's say int i). The new file should be saved as "save"+i+".txt". The directory should look like this:
1 2 3
save0.txt
save1.txt
...
Now my questions:
How can I count the files?
How can I insert the number of files in the filename?