摘要: 实例:在c#中 在D盘下面创建一个abc的文件夹,然后在文件夹里面创建一个123.txt的文档string path = @"D:\abc";string fileName = "123.txt";if (!Directory.Exists(path)){Directory.CreateDirectory(path);}if (!File.Exists(path + "\\" + fileName)){File.Create(path + "\\" + fileName);} 阅读全文
posted @ 2013-09-05 17:06 乡香田甜 阅读(338) 评论(0) 推荐(0) 编辑