i'm trying to do this
But it doesn't quite work. Can someone show me how to do it properly?Code:string in_file;
cin >> in_file;
ifstream in( in_file );
Printable View
i'm trying to do this
But it doesn't quite work. Can someone show me how to do it properly?Code:string in_file;
cin >> in_file;
ifstream in( in_file );
you should use in_file.c_str() instead.
That fixed it. Thanks.