Questions Received:
How to download a file synchronously.Solution:
The following is the logic to download a file from Web URL,
webClient webClient = new WebClient();
webClient.DownloadFile("http://mysite.com/myfile.txt", @"c:\myfile.txt");
[Note:] Reference Namespace, using System.Net;
No comments:
Post a Comment