62,271
社区成员
发帖
与我相关
我的任务
分享
FileStream fsFileRead = new FileStream(
FileName,
FileMode.Open,
FileAccess.Read);
byteDataValue = new byte[LINE_SIZE];
charDataValue = new char[LINE_SIZE];
string strLine = string.Empty;
int intLength = 0;
while (fsFileRead.Read(byteDataValue, 0, byteDataValue.Length) == byteDataValue.Length)
{
Encoding.Default.GetDecoder().GetChars(byteDataValue, 0, byteDataValue.Length, charDataValue, 0, true);
strLine = new string(charDataValue);
...
...
...
intLength += LINE_SIZE;
fsFileRead.Seek(intLength, SeekOrigin.Begin);
}