////////////////////////////////////////////////////////////////
///读取
System.IO.FileStream fs = new FileStream("F:\\test.txt",FileMode.OpenOrCreate );
byte[] bt = new Byte[fs.Length];
fs.Read(bt,0,bt.Length);
Encoding CnEnconding = Encoding.GetEncoding("GB18030");
string str = CnEnconding.GetString(bt);///写入
byte[] buff = CnEnconding.GetBytes("我要写入的东东");
fs.Write(buff,0,buff.Length);fs.Close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货