c# download file

C#
using System.Net;

using (WebClient web1 = new WebClient())
	web1.DownloadFile("URL", "FileName");
}
Source

Also in C#: