I have had some troubles with trying to get a program to read a file without putting the whole path in for it.
Doesn't work for me, but putting C:\\My Documents\\RuneParse\\Runes.txt in the quotation marks does work, what am I doing wrong.Code:std::ifstream file( "Runes.txt" , std::ios::in ); if (!file.is_open()) std::cout<<"Error opening file"; else
I am using Dev-C++, if that helps.
(PS - This was done before i found out about using namespace std so that is why all the std:: are in there, I have yet to remove them in this program)



LinkBack URL
About LinkBacks


