Hi, in C++ when I want to loop text in from a text file I use eof

ie.


while (!List.eof())
{
getline (List,line);
_str1 = line;
getline (List,line);
_str2 = line;
}


In C# there isnt a eof which I know of. Any ideas?

Thanks.