如何创建一个目录,以及创建一个文本文件 string path=@"c:\log\temp.txt";if(!File.Exists(path)){File.Create(path);} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string path = @"c;\log";Directory.CreateDirectory(path);文件同上 if(!System.IO.Directory.Exists("c:\\log")) System.IO.Directory.CreateDirectory("c:\\log");if(!System.IO.File.Exists("c:\\log\\temp.txt")) System.IO.File.Create("c:\\log\\temp.txt"); throw抛异常的疑问 文本框联动 查询某一时间点的库存的SQL语句应该怎么写?望高手指教!! TypeMock有什么用? 求救,如何使用Win API向toolscrip中的button控件发送消息? 问大家个问题 北京南大苏富特 和北大软件 这两个公司怎么样 给点意见 再问个技术问题 C# winfrom程序 客户端通过代理访问服务器数据库 用接口、还是抽象类实现调用对应编辑窗口Add()、Delete()、Update()方法。 关于网络连接的问题 :)新手提问,有关c#的基础问题 请教如何设计接口(C#)? ASP.NET c# web 入门问题
Directory.CreateDirectory(path);
文件同上
System.IO.Directory.CreateDirectory("c:\\log");if(!System.IO.File.Exists("c:\\log\\temp.txt"))
System.IO.File.Create("c:\\log\\temp.txt");