I am trying to get a program to write to multiple user selected files. I input the file names as an array of strings, but MVS doesn't let me use the array (or a string for that matter) as a file name. Here is a sample of my problem:
Code:
vector<string> files(filenum);
cout<<"Please enter the name of the file(s) you wish to convert"<<endl;
for (int y=0;y<filenum;y++){
cin>>files[y];
}
for (y=0;y<filenum;y++){
ofstream openhtml(line);
}
Sorry if this is a stupid question, but I'm all out of ideas. Thanks!
edit=code tags