I'm trying to figure out a way to create a loop to open files and read in data until either there are no more files or the user wants to stop.
for example, the first time through the loop, the string variable would be "myfile_1" and then each subsequent time through the loop, the number will increase by 1. i.e. the next file would be "myfile_2" and so on.
So what would answer my question is, how can i open a file using a variable, and then change the file name to increment indefinitely?
I found this post but i'm still a little unclear, http://www.daniweb.com/software-development/c/threads/17594