When you see it say that there's "no matching function", that means there's no function with the given name that expects the types you've provided. If you double-check the documentation for ifstream's open function, you'll see that it takes a char*, not a string.
So use the .c_str() member function to get a char*.
Reputation Points: 1135
Solved Threads: 171
Super Senior Demiposter
Offline 2,478 posts
since Jun 2005