Fork me on GitHub
摘要: //方法一:按行读取txt文本 string path = @"G:\Desktop\QuartzSideA-film_1.txt"; StreamReader sr = new StreamReader(path, Encoding.Default); String line; while ((l 阅读全文
posted @ 2022-11-18 15:56 -悟空 阅读(1830) 评论(0) 推荐(0) 编辑
摘要: DateTime dt = DateTime.Now; string filename = dt.ToString("yyyy-MM-dd") + "_log.txt"; string path =System.AppDomain.CurrentDomain.BaseDirectory+ "log\ 阅读全文
posted @ 2022-11-18 11:39 -悟空 阅读(613) 评论(0) 推荐(0) 编辑