Programming Reference Manual
 
Syntax
 
FSeek handle%, newlocation&
 
Description
Changes the filepointer of the file, Opened with FOpen under handle%, to the new offset of newlocation&. 
 
Parameter
Description
handle%
A handle to the file, previously opened with the FOpen instruction.
newlocation&
The new offset in the file where the pointer moves to.
See Also
Example
 
Sub Main
Debug.Print FreeFile ' 256
Dim Hnd%, rec&
Hnd% = FOpen(“C:\MYDBASE.DAT”, 0, 4)
'read-only, shared
FSeek Hnd%, 0
Rec&=1
While Not FEof(Hnd%)
Print FGetR(Hnd%, 4, Rec&)'record is 4 bytes
Print “Offset=”, FLoc(Hnd%) 'current position
Wend
FClose Hnd%
End Sub