c#数据流,读不出来。。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DECODE
{
class Program
{
static void Main(string[] args)
{
string path = @"frame_0_right.dat";
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
Byte data = br.ReadByte();
//string str = System.Text.Encoding.Default.GetString(byte[data]);
Console.Write(data.ToString("X2"));
Console.Read();

    }
}

}
只能读出来最开始的EA,后面的为什么读不出来

string path = @"frame_0_right.dat";
byte[] data = File.ReadAllBytes(path);
foreach (byte b in data.SkipWhile(x => x != 0xea))
{
Console.Write(b.ToString("X2") + " ");
}

Byte data = br.ReadByte(); 你读的就是一个字节

 string path = @"xxx.txt";//path为txt的完整路径名+文件名
byte[] bytes = File.ReadAllBytes(path);
using (MemoryStream ms = new MemoryStream(bytes))
{
string result = Encoding.GetEncoding("gb2312").GetString(ms.ToArray());
Console.WriteLine(result);
}