Reputation: 698
I want to get html content from a webpage in my windows app. Im using webclient DownloadString method to get the string content and now I want to store this string result in html document but I am unable to do this.
Upvotes: 0
Views: 1241
Reputation: 499062
I suggest using the HTML Agility Pack to download and parse the HTML you are interested in.
It offers several ways to query the HTML, including LINQ and XPath.
Upvotes: 1
Reputation: 21855
You just need to do:
System.IO.File.WriteAllText("youFileName.html",yourString);
Upvotes: 0