I have an array of strings and inside a loop, I want to do something like this:
fstream in(fileNames[i], ios::in);
but that doesn't work. Although, when I try:
fstream in("some string",ios::in);
it works.
How could I accomplish the same thing, but with an array element?