.

Reading system.io.stream – StreamReader

Example to show how Streams can be read using a StreamReader:

HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://www.bitlinkit.com");
WebResponse wrsp = myReq.GetResponse();
System.IO.Stream str = wrsp.GetResponseStream();
System.IO.StreamReader sr = new System.IO.StreamReader(str);
Textarea1.Value += "content:" + Environment.NewLine + sr.ReadToEnd();

What's your thoughts on this?

*

Protected by WP Anti Spam