I need to create files with the same name but with a number attached to the end of the file name to indicate that it was the nth file. So in the for loop, I basically want to do this:
char *filename = "file";
strcat(filename, i);
Clearly, this is not a way to do this, but any ideas on how I can accomplish this task?
Thank you
Christo
source
share