C#提示流不支持写入
小步尝 2006-08-21 05:00:52 下面代码提示流不支持写入,怎么办??解决??
byte[] bArray = new byte[53];
FileStream fs = new FileStream(FILE_NAME, FileMode.Open, FileAccess.Read);
try
byte[] data = new byte[fs.Length];
fs.Seek(0,16);
fs.Write(bArray,0,16); //这句出错了
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
//MessageBox.Show(Convert.ToSByte(data));
fs.Close();