I have a C++ project that I haven't used in a year. It used to run perfectly, opening files with:
Matrix pmatrix;
pmatrix.readFromFile("pmtx.txt");
and in the function:
void Matrix::readFromFile(string filename){
ifstream tmfile;
tmfile.open(filename.c_str());
if (!tmfile) {
cout << "unable to open tm file";
//return 1;
}
etc
}
It keeps telling me "unable to open tm file". I've been breaking my head about this. Obviously the file is in the directory of the src and I copied it to Debug and Release, I gave it full permissions. I use eclipse.
Any ideas why this just stopped working?