i am using Dev C++ on windows xp
#include #include #include using namespace std; int main () { string S
std::ifstream::eof is a function that returns a bool. Thsu you have to call it like
std::ifstream::eof
infile.eof()