how do you do eof in c++ is in infile.eof or what i haev been trying for hours and still cant get it ..

do
{



}while(infile != infile.eof);


is that how some one help me here