摘要:
第一种: 第二种: 它们都一次将文本内容全部读完,并返回一个包含全部文本内容的字符串string str = File.ReadAllText(@"c:\temp\ascii.txt");// 也可以指定编码方式 string str2 = File.ReadAllText(@"c:\temp\as 阅读全文
posted @ 2019-06-09 21:34
饮木
阅读(12336)
评论(0)
推荐(0)
摘要:
第一种: 第二种: 阅读全文
posted @ 2019-06-09 17:26
饮木
阅读(1355)
评论(0)
推荐(0)
摘要:
/// /// 下载网络资源 /// /// 地址 /// 保存下载文件的路径,例:"e:\\1.png" private void DownLoadFiled(string url, string path) { WebClient webClient = new WebClient(); webClient.DownloadFile(url, path); } 阅读全文
posted @ 2019-06-09 13:09
饮木
阅读(445)
评论(0)
推荐(0)
摘要:
为保持平台的通用性,最好用 Environment.NewLine 阅读全文
posted @ 2019-06-09 13:06
饮木
阅读(300)
评论(0)
推荐(0)

浙公网安备 33010602011771号