I am using WebClient,DownloadString(\"http://example.com/string.txt\"); When I call it the memory jumps up, but never goes down again, and since I need 2-3 different strings
WebClient implements IDisposable, so your code should look like this:
string result;
using (WebClient client = new WebClient())
{
result = client.DownloadString("http://example.com/string.txt");
}
Console.WriteLine(result);
This will make sure that most resources used by the WebClient instance are released.
The rest will eventually be cleaned up by the Garbage Collector. You don't need worry about this.