var bytes:ByteArray=new ByteArray();
bytes.writeInt(10);
bytes.writeUTF("123");
//AS3中使用下面兩句可以讀取了明文
trace(bytes.readInt());
trace(bytes.readUTF());
用C#代碼要怎麼讀出來??上面兩句
byte[] data = File.ReadAllBytes("x:\xxx.bin").ToArray();
int x = BitConverter.ToInt32(data, 0);
string s = Encode.GetEncoding("UTF-8").GetString(x.Skip(4).ToArray());