摘要:
c# 操作txt文件 # 操作txt文件 c#创建文本private const string FILE_NAME = "ErroLog.txt"; public static void WriteFile(string str) ...{ S... 阅读全文
posted @ 2015-06-15 09:23
王文姿
阅读(3965)
评论(0)
推荐(0)
摘要:
1)Trim方法string tt=" aaa "; tt=tt.Trim() 去字符串首尾空格的函数tt=tt.TrimEnd() 去掉字符串尾空格tt=tt.TrimStart() 去掉字符串首空格 阅读全文
posted @ 2015-06-15 09:20
王文姿
阅读(371)
评论(0)
推荐(0)
摘要:
复制代码1、打开文件路径: OpenFileDialog a= new OpenFileDialog(); //new一个方法a.Filter = "(*.et;*.xls;*.xlsx)|*.et;*.xls;*.xlsx|all|*.*"; //删选、设定文件显示类型a.ShowDialog(... 阅读全文
posted @ 2015-06-15 09:18
王文姿
阅读(1118)
评论(0)
推荐(0)

浙公网安备 33010602011771号