摘要:
我的代码是: //读取 private void button1_Click(object sender, EventArgs e) { if(File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory+"123.txt") != "") { thi 阅读全文
posted @ 2020-05-11 10:19
小寒2020
阅读(217)
评论(0)
推荐(0)
摘要:
将两个路径合成一个路径,自动处理路径分隔符的问题。 函数声明如下:public static string Combine ( string path1, string path2 ) 常规使用方法。string path = Path.Combine("D:\\work", "April.txt" 阅读全文
posted @ 2020-05-11 10:14
小寒2020
阅读(353)
评论(0)
推荐(0)