Hi,
I would need to create unique filenames appended by the iteration number.
For eg.
for( i=0;i<iterations;i++){
ofstream outfile("iterfile"+"i"); // i.e filename should be iterfile0 for 1st iteration.
}
I need to cast "i" from int to char so I tried
ofstream outfile("iterfile"+(char)i)
but it did not work. How do I do this correctly?