File类的创建,删除文件

            File.Create(@"C:\Users\shuai\Desktop\new.txt");
            Console.WriteLine("创建成功");
            Console.ReadKey();

            File.Delete(@"C:\Users\shuai\Desktop\new.txt");
            Console.WriteLine("删除成功");
            Console.ReadKey();

 

posted @ 2015-08-02 15:06  骏码信息  阅读(180)  评论(0编辑  收藏  举报