Contents

Roo

File.pos

Returns the current (zero-based) position of the read/write pointer for this File object.

var f = File("/Users/garry/Desktop/test.txt")
print(f.pos) # 0
f.read_int8
print(f.pos) # 1