2020年6月2日

摘要: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 string str=@"C:\Users\Administrator\Desktop\1.txt"; 6 //在指定的路径中创建或者修改文件。 7 File.Create(str 阅读全文

posted @ 2020-06-02 21:49 NCY_1991 阅读(80) 评论(0) 推荐(0) 编辑

摘要: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 string str=@"C:\Users\Administrator\Deskto\1.txt"; 6 //获得文件名 7 Console.WriteLine(Path.GetF 阅读全文

posted @ 2020-06-02 21:34 NCY_1991 阅读(111) 评论(0) 推荐(0) 编辑