摘要:
引用:http://topic.csdn.net/t/20030408/02/1631407.htmlFileStream fs = File.Create(@ "c:\hot.xls ");StreamWriter sw = new StreamWriter(fs);sw.Write( "hello world ");fs.Close(); 阅读全文
摘要:
引用:http://topic.csdn.net/u/20120622/18/26ee810a-aa82-445f-ac76-275b544fac82.htmlnew Regex("你").Replace(源字符串, "我", 3) 阅读全文
摘要:
引用:http://www.cnblogs.com/wggWeb/archive/2012/02/23/2364521.html1这是最简单的方法 DirectoryInfo di = new DirectoryInfo(string Path); di.Delete(true); 注:path是你要删除的非空目录; true:你要删除里面所有的文件,包括文件夹和子文件夹2/// <summary> /// 删除非空文件夹 /// </summary> /// <param name="path">要删除的文件夹目录</param& 阅读全文