09 2013 档案
摘要:C# 读写txt文件 class WriterReadLog { string path = Application.StartupPath + @"\log.txt"; public WriterReadLog() { } public static void Write(string logContent) { string content = System.DateTime.Now.ToString("yyyy-MM-dd hh:MM:ss "); ...
阅读全文
摘要:class ReadWriteExcel { #region 读取Excel /// /// 读取Excel文件到DataTable /// /// Excel文件路径 /// 需要读取的Sheet 例如要Sheet1$,则此处填写 1 /// DataTable public static DataTable ReadExcel(string filepath, int sheetindex) { DataTable dt_Resul...
阅读全文