System.IO.FileInfo objFile = new System.IO.FileInfo(@"c:\tj.txt");
System.IO.FileStream objFreader = objFile.OpenRead();
byte[] b1=new Byte[objFreader.Length];
objFreader.Read(b1,0,Convert.ToInt32(objFreader.Length));
string result=System.Text.Encoding.GetEncoding("GB2312").GetString(b1);
this.textBox1.Text=result;
objFreader.Close();
上面的代码是在windows application中测试通过的,asp.net一样的,我的坏了,关键将StreamReader改成FileStream类来读写;