| 
 
| SaveFileDialog sfd = new SaveFileDialog(); 
 if (sfd.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
 {
 string FileSavePath = sfd.FileName;
 using (FileStream fs = new FileStream(FileSavePath, FileMode.Create))
 {
 fs.Write(arrMsgrec, 1, length - 1);
 ShowMsg("文件保存在:"+FileSavePath);
 }
 }
 上面这样读取的二进制传过来的文件时,文件格式就变了,比如.doc变得不是了.txt也是不得不能用了。求解决
 
 | 
 |