摘要:
添加using System.Net; string HttpStr 即下载的URL地址; string SaveUrl 要保存到本地的地址; private bool GetAndSaveFile(string HttpStr,string SaveUrl) { try { if (SaveUrl.LastIndexOf("\\") != SaveUrl.Length) { SaveUrl = SaveUrl + "\\"; } WebClient mywebclient = new WebClient(); int i = HttpStr.LastIndexOf("/"); strin 阅读全文