📜  如何下载东西c#代码示例

📅  最后修改于: 2022-03-11 14:48:58.545000             🧑  作者: Mango

代码示例1
using System.Net;

WebClient webClient = new WebClient();
webClient.DownloadFile("http://mysite.com/myfile.txt", @"c:\myfile.txt");