Which one is faster – FileStream.Position or FileStream.Seek?

Posted on April 26, 2008

0


FileStream.Position property is implemented in terms of File.Seek (essentially File.Seek(value, SeekOrigin.Begin)). Consequently setting the location of the virtual file-pointer by calling Seek directly instead of calling Position results in slightly faster execution speed. Seek is also better because it has more options.

Advertisement
Posted in: General