Possible Duplicate:
C++ type of argument to ifstream::open()
C++ ifstream error using string as opening file path.
Whats wrong with
ifstream sourceFile;
sourceFile.open(filepath);
I am getting something about:
no matching function call to
ifstream::open(string&)
Whats wrong?
Same with
ifstream sourceFile(filepath)
Where filepath is a string