2021-11-10 c#文件流读写
c#using system.IO写流StreamWriter sw=newStreamWriter(path,true,Encoding.Default);1.path为文件路径2.true/false表示是否追加,不追加则删除此前写入的文本读流StreamReader类StreamReader sr =new StreamReader(path)while(sr.Peek>-1)*{peek 函数没找到值则返回-1…string str=sr.ReadLine();stri
原创
2021-11-10 17:24:47 ·
184 阅读 ·
0 评论