Hi. What is the best way to check for EOF when using the streamreader? I am using a do loop. Following is what I have tried but all end in an error when eof is reached.
1. Adding 'until line is nothing' to the end of the loop.
2. Adding 'while not line is nothing' after the do.
3. After the line is read in the do coding:
If line Is Nothing Then
Exit Do
End If
Thanks for your help!
From http://www.developmentnow.com/g/38_2...nguages-vb.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com