using (StreamReader sr = new StreamReader(@"C:\Users\shuai\Desktop\文件流读取.txt", Encoding.Default)) { while (!sr.EndOfStream) { Console.WriteLine(sr.ReadLine()); } } Console.ReadLine(); using(StreamWriter sw=new StreamWriter(@"C:\Users\shuai\…
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 文件流 { class Program { static void Main(string[] args) { FileStream fsread = new FileStream(@"C:\Users\shuai…