...
...
...
...
=open.FileName; } //传入txt文件路径参数 读取txt文件所有 ...
C# winform写入和读取TXT文件 string str; str=this.textBox1.Text; StreamWriter sw = new StreamWriter(Application.StartupPath ...
读取: 1.使用StreamReader读取文件,然后一行一行的输出 StreamReader sr = new StreamReader(path,Encoding.Default); String line; while ((line = sr.ReadLine ...
...
写入: 读取: end ...