ok i know this has been posted before but search wont let my search for eof (or ENd Of File) anyway i need to know when im using ifstream somename(somefile) how to go untill EOF it's been a while for me and this is what i can remember help me out here
ifstream somename(somefile);
while(!somename.eof())
{
somecommands
}
that gives an error what am i doing wrong?