编辑器加载中...//检查文件,如果文件不存在则创建 private void ExistsFile(string FilePath) { //if(!File.Exists(FilePath)) //File.Create(FilePath); //以上写法会报错,详细解释请看下文......... if (!File.Exists(FilePath)) { FileStream fs = File.Create(FilePath); fs.Close(); } } private void Button2_Click(object sender, System.EventArg... Read More
posted @ 2011-12-14 11:32 秦小米 Views(1558) Comments(0) Diggs(1) Edit