I am writing a program in C++ to generate input files for a two programs for testing purpose. I can generate data files individually by specifying the name.
What I want is to be able to run the program once and it generates a number of data files e.g. test1.txt, test2.txt and so on. In general the main problem is how to print the counter variable as part of the file name.
Please if anyone know about this then let me know.