I want to read a file, change the data and create say 50 new files from the original file, all numbereder 1 to 50.
So let's say that the original file is called "file.txt" then I want the others to be named "file1.txt" to "file50.txt". The number will be int x and I will have a loop until x > 50. The number may change.
How do I do this? I figured out how to use a string variable as a filename. I tried to see how I can create a new string out of a string and a integer but I can't figure out how to do that.
Oh, I am currently using iostream.
Thanks.