Can I use TextReader to read an HTML file from a site, e.x.: http://www.moe.alrazem.com/default.htm and save the html code as a string in a variable??? Using C#??
How can this be done?
Loading
Can I use TextReader to read an HTML file from a site, e.x.: http://www.moe.alrazem.com/default.htm and save the html code as a string in a variable??? Using C#??
How can this be done?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
bigfoot_71Posted Feb 14, 2007, 6:22 AM
string page;
System.IO.StreamReader srd;
srd = new System.IO.StreamReader(myWebClient.OpenRead(@"htt://www.vbdotnetheaven.com"));
page = srd.ReadToEnd();
regards