摘要: This code writes down MemoryStream to a file:FileStream file =newFileStream("file.bin",FileMode.Create,System.IO.FileAccess.Write);byte[] bytes =newbyte[ms.Length];ms.Read(bytes,0,(int)ms.Length);file.Write(bytes,0, bytes.Length);file.Close();ms.Close();and this reads a file to a MemoryStr 阅读全文
posted @ 2012-08-01 17:33 Black Bean 阅读(15120) 评论(1) 推荐(0) 编辑