1551有人能帮帮我吗?哪里有问题啊
FileStream fs = new FileStream(@"E:/test/PlayerConfig.dat", FileMode.Create, FileAccess.Write);
MemoryStream ms = new MemoryStream();
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(ms, tmp.data);
BinaryWriter bw = new BinaryWriter(fs, new UTF8Encoding());
bw.Write(ms.GetBuffer());
bw.Flush();
bw.Close();
fs.Close();
生成的文件不是UTF8格式