日期:2014-05-17 浏览次数:20771 次
StreamReader sr = new StreamReader("c:/test.txt"); sr.BaseStream.Seek(8, SeekOrigin.Begin);//偏移8个字节 char[] buffer = new char[4]; sr.Read(buffer, 0, 4);//连续读4个字节