A snippet to get you started:
using(var wc=new WebClient())
{
wc.DownloadFile("http://some/internet/resource",@"c:\some\local\filename");
}
Question
I want to code a simple file downloader in C#. I want to know how it works? eg. If I give it a URL, what will it do? I have a very rough idea about it.
This is my first time coding on web technology. So I hardly have any idea.
Can anybody please explain me the steps?
La solution
A snippet to get you started:
using(var wc=new WebClient())
{
wc.DownloadFile("http://some/internet/resource",@"c:\some\local\filename");
}