SEEK

SEEK #fileN, pos

Sets file position to pos for the next read/write for file with the ID #fileN. The file position starts with 0.

Example

' create a file
open "testseek.txt" for output as #1
print #1, "abcdefghijk"
close #1


' open file
open "testseek.txt" for input as #1
seek #1, 4                              ' file position set to 4
c = input(1,1)                          ' read one character from file
print c                                 ' Output: e
close #1
Code samples using SEEK
File
If there is insufficient information on this page and you wish learn more about SEEK, please send an email to smallbasic@gmail.com. You can help to improve information about SEEK by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.