I am working with a rather large text file and I was wondering if there was anyway to loop indefinately until the end of the file has been reached. I know in C++ there is an eof variable, but I can’t seem to find an equivalent in C#.
There is an MSDN example showing you exactly what you’re after.
Scroll down for the C# version. It’s there
Cheers,
-Jon