Mastering Development

How can I use C# to save a webpage as a text file [closed]

i want this page save to string in c#
i try webbrowser but webbrowser cant show page

HttpClient httpclient = new HttpClient(); var result =  httpclient.GetStringAsync(new Uri("")).ToString(); File.WriteAllText("abc.html", result);

Leave a Reply

Your email address will not be published. Required fields are marked *