Easiest way to read from a URL into a string in .NET

using(WebClient client = new WebClient()) {
   string s = client.DownloadString(url);
}

Leave a Comment