|
-
Dec 11th, 2006, 11:00 AM
#1
Thread Starter
Addicted Member
[2005] The problem of sr.EndOfStream when the last line holds data
Hi,
When I process a text file, I do so line-by-line using:
...but if the last line of the file contains data (i.e. there are no blank lines at the bottom), the last line doesn't get read. I do a workaround for this by opening up a file, adding a line then opening it up again to process. Pretty bad, huh?!
So what's the best way to get around the 'last line with data' prob? I suspect it might have something to do with "Peek", which I've never used.
Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|