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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top