思考命运

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月17日

摘要: public static byte[] GetFile(string strFileName) { Stream s = new FileStream(strFileName,FileMode.Open); byte[] buffer = new byte[s.Length]; s.Read(buffer,0,(int)s.Length); return buffer; }上面代码从文件生成了字节数组,然后怎样把字节数组保存为文件?public void saveFile(byte[] buffer){Stream s = new FileStream(strFileName, FileMo 阅读全文
posted @ 2012-08-17 13:26 思考命运 阅读(1150) 评论(0) 推荐(0) 编辑