我怀疑别人应该是对原码作了加密,如果仅仅是把16进制东西转换成字符的话,可以如下:using System.Text;string strReadBuffer;//Set data using streamreader//convert every two chars of data into byte byte[] bData = new byte[strReadBuffer.Length/2]; for( int i = 0; i < strReadBuffer.Length/2; i++ ) { bData = Convert.ToByte( strReadBuffer.SubString( i*2, 2 ), 16 ); }string strOut = Encoding.ASCII.GetString( bData, 0, bData.Length ); //Save it to file using "strOut"
byte[] bData = new byte[strReadBuffer.Length/2];
for( int i = 0; i < strReadBuffer.Length/2; i++ )
{
bData = Convert.ToByte( strReadBuffer.SubString( i*2, 2 ), 16 );
}string strOut = Encoding.ASCII.GetString( bData, 0, bData.Length );
//Save it to file using "strOut"