pos = FilePos(id)
id
. The cursor starts at 0 (beginning of the file) and ends at
the length of the file. You can use this function to find out where you
are in a file because all read and write operations will start at this
cursor position. You can use Seek() to modify the file cursor position.
OpenFile(1, "test.txt", #MODE_READ) Seek(1, 1024) Print(FilePos(1)) CloseFile(1)This prints 1024.