Hey, I'm trying to download a file from the internet and save it to my desktop.. The code compiles but at runtime it does not download the file:
try
{
WebClient fileDownloader = new WebClient();
fileDownloader.DownloadFile("http://www.google.com/logos/2010/lebanonind10-hp.jpg", "/Users/p/Desktop");
}
catch(Exception ex)
{
Console.WriteLine ("The file cannot be downloaded!");
}
Any ideas please? Thanks :)