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
input(3,1) ' read three character from file
c = print seek(1) ' Output: 3
close #1
Code samples using SEEK
File
ACCESS
BGETC
BLOAD
BPUTC
BSAVE
CHDIR
CHMOD
CLOSE
COPY
DIRWALK
EOF
EXIST
FILES
FREEFILE
INPUT
INPUT
KILL
LOCK
LOF
MKDIR
OPEN
READ
RENAME
RMDIR
SEEK
SEEK
TLOAD
TSAVE
WRITE
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.