|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to read a stream of data?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! 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! > > |
|||||||||||||||||||||||