c#
using system.IO
写流
StreamWriter sw=new
StreamWriter(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();
string []s=str.Split(’,’);
}