Hi, I've got some problem with getline(), it doesn't want to work and I get some puzzling errors from the compiler... So I want to read on a file using "getline", a string and the file itself... So I have something like this, and it always worked before:
I don't understand why, but I get errors telling me that "getline" couldn't be found, or that "std::getline" isn't part of "std::"... I have included in my file those headers:
std::getline(File, Temp); //doesn't work...
getline(File, Temp); //doesn't work either...
And even if I try with/without "using namespace std;" it doesn't change a thing...
However in all my previous program I used getline this way and it always worked, but in this case I don't have a clue... Even if you point your cursor on "getline()" and see what are its prototypes, it seems to be of "std"... It writes some "std::basic_istream" things so I believe it should be working...