Well let's say i have :
It doesn't work.. But how can i use the string to be the filename.. ?Code:
#include <iostream>
#include <fstream>
#include <string>
int main(){
string filename;
cout<<"Give the name of the file you want to write"<<endl;
cin>>filename;
ofstream filepointer(filename);
return 0;
}