file_tell
host callCapy
function file_tell(handle : u64) s64
Description
file_tell returns the current position for a file handle.
Parameters
handle : handle from file_open
Return Values
The current byte offset.
Example
Capy
var handle := file_open("/tmp/doc-tell.txt", "w")
file_write(handle, "hello")
print(file_tell(handle), "\n")
file_close(handle)