我的代码如下 :
private void zimo(char st)
{
byte[] bts = Encoding.GetEncoding("GB2312").GetBytes(new char[] { st });
int a0 = bts[0] -160;
int a1 = bts[1] -160;
int c = (92 * (a0 - 1) + a1) * 32;
FileStream fs = new FileStream(@"HZK16", FileMode.Open, FileAccess.Read);
byte[] b = new byte[c+32];
int a=fs.Read(b,c,32);
for(int i=c;i<c+32;i++)
{
richTextBox1.Text +=b[i].ToString()+ "\r\n";
}
fs.Close();
}
读出来的数据怎么全是0啊!