ifstream inData;
inData.open(INFILE);
/*error: no matching function for call to `std::basic_ifstream<char, std::char_traits<char> >::open(const std::string&)' */
ifstream outData;
outData.open(OUTFILE);
/*error: no matching function for call to `std::basic_ifstream<char, std::char_traits<char> >::open(const std::string&)' */
.
.
.
//this works:
inData.open("ihopethisworks.exe");
outData.open("ireallyhopethisworks.exe");
I can't figure how to use the string constants instead of file names. Help?