Seek Function [Runtime]/text/sbasic/shared/03020304.xhpSun Microsystems, Inc.converted from old format - fpeSeek functionSeek Function [Runtime]Determines the position for the next writing or reading in a file that was opened with the open statement. The return value corresponds to the value determined by the Seek statement:For random access files, the Seek function returns the number of the next record to be read.For all other files, the function returns the byte position at which the next operation is to occur.See also: Open, Seek.Syntax:Seek (FileNumber)Return value:LongParameters:FileNumber: Returns the file number determined by the Open statement.Example:Sub ExampleSeekDim i As IntegerDim iNumber As IntegeriNumber = FreefileOpen "c:\Data.txt" For Random As #iNumberFor i = 1 To 10PUT #iNumber, , iNext iSeek #iNumber, 2Get #1, , iPrint "Date: "; i;" Next Record: "; Seek(iNumber)end sub