Home All Groups Group Topic Archive Search About

How to read a stream of data?

Author
11 Apr 2005 5:10 PM
ywchan
I have used a stream reader and sometimes it contains more than one rows of
text. How to read all the lines in a stream reader?
sr.Readline can only get line by line...and every times the total lines
varies...I wonder how to get all the lines at the same time. Thanks!

Author
11 Apr 2005 6:47 PM
Beth Massi [Architect MVP]
Take a look at the ReadToEnd method.

-B

Show quoteHide quote
"ywchan" <ywc***@gmail.com> wrote in message
news:OxtSrlrPFHA.648@TK2MSFTNGP14.phx.gbl...
>I have used a stream reader and sometimes it contains more than one rows of
> text. How to read all the lines in a stream reader?
> sr.Readline can only get line by line...and every times the total lines
> varies...I wonder how to get all the lines at the same time. Thanks!
>
>