SEEK

n = SEEK (fileN)

Returns the current file position of file with ID fileN. The file position start 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
c = input(3,1)                          ' read three character from file
print seek(1)                           ' Output: 3
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.