BB FlashBack SDK: FBVFile

Seek

Description

Repositions the file pointer in a previously opened file.

Syntax

[C#/C++]
public int64 Seek (VFILE_SEEK_BASIS vsbSeek, int64 lOffset)

[VB.NET]
Public Function Seek (ByVal vsbSeek As Long, ByVal lOffset As Int64) As Int64

Parameters

vsbSeek - specifies the starting position of the file pointer. Possible values are:

VFILE_SEEK_BEGIN

Moves the file pointer lOffset bytes from the beginning of the file.

VFILE_SEEK_CURRENT

Moves the file pointer lOffset bytes from its current position.

VFILE_SEEK_END

Moves the file pointer lOffset bytes from the end of the file.

 

lOffset - the number of bytes to move the file pointer.
 

Return values

The return value specifies the new offset of the pointer, in bytes, from the beginning of the file.

See Also

FBVFile::Write  FBVFile::Read