0
爲什麼慢慢讀一個文件來尋找它會更好?c#尋找與讀取
//if (!read_fields[x] || !ok)
//{
// if (l > 0) Seek(l, SeekOrigin.Current);
// read[x] = null;
// continue;
//}
byte[] bx = new byte[l];
if (l > 0) Read(bx, 0, l);
if (!read_fields[x] || !ok)
{
read[x] = null;
continue;
}
我的速度測試說,追求的是速度很慢!
請參閱:http://stackoverflow.com/questions/4369278/filestream-seek-vs-buffered-reading –