opening files with strings for file names
alright, I have 2 strings, I appended the second string the first string and now I want open a file which is the first strings name
s1 = myfile.
s2 = 2
s1 is now myfile.2
how can I use s1 to open that file?
when I type:
fstream Fin( s1, ios::in );
I'm getting errors that I can't do this with the string as the file name.