Groups | Blog | Home
all groups > vb.net > february 2004 >

vb.net : Seek via Position in FileStram


Percy NG
2/17/2004 11:26:05 PM
H
I would like to know what is the different between FileStream.Seek Method and FileStream.Position Property

Thank
Jay B. Harlow [MVP - Outlook]
2/18/2004 7:44:50 AM
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

[quoted text, click to view]

hirf-spam-me-here NO[at]SPAM gmx.at
2/18/2004 11:31:32 AM
* "=?Utf-8?B?UGVyY3kgTkc=?=" <percy_ng@hotmail.com> scripsit:
[quoted text, click to view]

'Seek' cannot be used to /get/ the current position.

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button