I want to read a binary file from a particular position. I am u开发者_C百科sing the following code but that is not working.
FileStream fs = new FileStream(filepath, FileMode.Open, FileAccess.Read);
fs.Seek(len,SeekOrigin.Current);
int bytesRead = fs.Read(buf, 0, buf.Length);
It starts reading from beginning.
fs.Seek(len,SeekOrigin.Begin);
精彩评论