Skip to content

FileHandle.position

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get the current read/write position in the file

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

import "file"
fh = file.open("data.txt", "r")
fh.read 10   // advance 10 bytes
print fh.position   // 10
fh.close

Clone this wiki locally