VS 2003 File I/O Problem

I'm having a problem with the library changes in VS2003. In VS6 you can do:

std::ifstream fin;
fin.open("myfile.txt");

while(!fin.EOF)
{
//input the file here
}

In VS2003 there is no .EOF operator. I need to know how to loop through the file until I reach the end. I know that I can do it with istream_iterator and copy the stream into an STL container...I was hoping to just do it with fin.getline and loop until the end of the file. Any help would be appreciated. Thanks
[561 byte] By [Tard] at [2007-11-18 21:58:53]
# 1 Re: VS 2003 File I/O Problem
// the method I prefer ...

while (fin.getline(...))
{
// process input here
}

// or

fin.getline(...);
while (!fin.eof())
{
// process input

fin.getline(...);
}
Philip Nicoletti at 2007-11-11 1:05:48 >