Kunk,
I would take the approach that if ReadLine threw an exception then the
entire stream is bad!
In other words I do not see that the StreamReader could possible ensure you
could continue using it, once it threw any exception...
Just out of curiosity, what kind of exception do you see that ReadLine would
throw that would leave the StreamReader and underlying Stream in a
"guaranteed" usable state?
Hope this helps
Jay
"Kunk" <da*******@hotmail.com> wrote in message
news:F9**********************************@microsof t.com...
Hi All,
I was curious if an exception is generated with the .ReadLine() function
(found in the StreamReader class), will the current line be consumed? Thus
the next .ReadLine() will start at the next line.
I ask this, because if it an exception is generated i would like to retry
the .ReadLine() from the same line without advancing to the next one. If the
line is consumed, is there anyway to specify a line number to start reading
at?
Thanks for all your help,
Kunk