I have:
string filename: ifstream file(filename);
The compilers complains about no match between ifstream file and a string. Do I need to
Change
ifstream file(filename);
to
ifstream file(filename.c_str());
Because the constructor for an ifstream takes a const char*, not a string pre-C++11.
ifstream
const char*
string