I'm wanting the program to read a line out of file. I wish c++ had .eoln()!
I get: test.cpp:10: no match for `std::ifstream& != char' operator
obviously because I'm comparing the wrong data types.
using namespace std;
int main ()
while(infile!='\n' && !infile.eof())
Is there a function in c++, like in pascal, so you can detect the end of a line? I know in pascal it would be like infile.eoln(), but that doesn't work in c++.
Any help will be appreciated,