Seek Instruction

Syntax              Seek [#]StreamNum, Count

Group                File

Description       Position StreamNum for input Count.

Note: Unicode text files opened with Input mode use character positions, not byte positions.

Parameter         Description

StreamNum         Streams 1 through 255 are private to each macro. Streams 256 through 511 are shared by all macros. 

Count                  For Random mode files this is the record number. The first record is 1. Otherwise, it is the byte position. The first byte is 1. 

See Also            Seek( ).

Example            '#Language "WWB-COM"
Sub Main
    Open "XXX" For Input As #1
    Line Input #1, L$
    Seek #1, 1 ' rewind to start of file
    Input #1, A
   'Close #1
    Debug.Print A
EndSub