现在的位置: 首页 > 综合 > 正文

用C#上传下载文件

2017年10月21日 ⁄ 综合 ⁄ 共 124字 ⁄ 字号 评论关闭

用C#下载服务器上的文件

WebClient client = new WebClient();
client.DownloadFile(url,fileName);

其中WebClient通过System.Net引入。

WebClient还提供了上传文件的功能。

抱歉!评论已关闭.