Click here to Skip to main content
16,015,481 members

Comments by Donnavan (Top 2 by date)

Donnavan 26-Jul-10 19:03pm View    
Reason for my vote of 4
Clear and helpful answer
Donnavan 26-Jul-10 19:02pm View    
0x3c0 is right about the loop
Another way this could be done without errors is by changing the loop as follows:

While Not sr.EndOfStream
line = sr.ReadLine()
End While

*Thanks I've been looking for how to accomplish the same task for some time now