一小段关于memorystream的代码,你相应修改就可以了.或者查找以前文章,我记得我回答过
类似的呵呵:)
MemoryStream ms=new MemoryStream();
BinaryFormatter b=new BinaryFormatter();
b.Serialize(ms,YOUR_ANY_OBJECT);
FileStream fs=new FileStream("f:\\ttt.t",FileMode.Create);
ms.WriteTo(fs);
fs.Flush();
fs.Close();
类似的呵呵:)
MemoryStream ms=new MemoryStream();
BinaryFormatter b=new BinaryFormatter();
b.Serialize(ms,YOUR_ANY_OBJECT);
FileStream fs=new FileStream("f:\\ttt.t",FileMode.Create);
ms.WriteTo(fs);
fs.Flush();
fs.Close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货