API Reference › File › File.tell
method

File.tell

File.tell(file: f) -> int

Returns the current cursor position in bytes from the start of the file.

Example

# doc-check: skip — illustrative
let size = File.tell(file: f)
← All symbols