//简洁版 public static void AddLgoToTXT(string logstring) { string path = AppDomain.CurrentDomain.BaseDirectory + "operalog.txt ...
引用using using System.IO using System.Text 写入方法 public void writeToHtml string fileName, string path, string content string fileAndName path fileName using FileStream fs new FileStream fileAndName, Fi ...
2017-11-15 11:23 0 2209 推荐指数:
//简洁版 public static void AddLgoToTXT(string logstring) { string path = AppDomain.CurrentDomain.BaseDirectory + "operalog.txt ...
了这个文件 if (!System.IO.File.Exists("c:\\use ...
1 winform 读取excel文档 1)点击button按钮,弹出上传excel窗口 private void button_headcompany_Click(object send ...
第一种: ...
<1> FileStream fs = new FileStream(@"D:\text.txt", FileMode.Append); StreamWriter sw = new StreamWriter(fs, Encoding.Default ...
...
C# winform写入和读取TXT文件 string str; str=this.textBox1.Text; StreamWriter sw = new StreamWriter(Application.StartupPath ...