If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ?
ifstream File("C:\\File1\\");
std::string Line;
while( getline(File, Line, ',') )
{
if ( ? ) // end of file ?
{
}
}