C#如何读取和写入txt文件
1、新建一个C#控制台程序

3、按Ctrl+F5运行一下

5、最后用System.IO.File.ReadAllLines读取txt里面所有行的内容

7、总结1、System.I蚪嬷吃败O.File.WriteAllLines写文件2、System.IO.File.ReadAllLines读文件
1、新建一个C#控制台程序
3、按Ctrl+F5运行一下
5、最后用System.IO.File.ReadAllLines读取txt里面所有行的内容
7、总结1、System.I蚪嬷吃败O.File.WriteAllLines写文件2、System.IO.File.ReadAllLines读文件