Seek via Position in FileStram

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H
I would like to know what is the different between FileStream.Seek Method and FileStream.Position Property

Thank
Percy
 
* "=?Utf-8?B?UGVyY3kgTkc=?= said:
I would like to know what is the different between FileStream.Seek Method and FileStream.Position Property?

'Seek' cannot be used to /get/ the current position.
 
Percy,
In addition to Herfried's comment.

FileStream.Position is always from the beginning of the file.

FileStream.Seek is from the beginning, current, or end.

Of course you can use FileStream.Position in relation to itself or
FileStream.Length to derive current or end...

Hope this helps
Jay

Percy NG said:
Hi
I would like to know what is the different between FileStream.Seek Method
and FileStream.Position Property?
 
Back
Top