Super simple my friend. You can use the System.Net.WebClient class. For example, to get the source of this topic on Dream In Code:
csharp
System.Net.WebClient client = new System.Net.WebClient();
client.BaseAddress = "http://www.dreamincode.net";
That will establish a connection to Dream In Code. Then, use this method
csharp
client.DownloadString("http://www.dreamincode.net/forums/showtopic63212.htm");
That will return a string with the source of "http://www.dreamincode.net/forums/showtopic63212.htm", which happens to be this topic. Also, there is a similar method in the same class called DownloadFile(). It will download the data off the internet and automatically write it into a file. I used Dream In Code as an example, you can do this with any site.
This post has been edited by jacobjordan: 9 Sep, 2008 - 01:17 PM