Type/to search
Built-in Functions
Global
Version
IsVirtual
GetOS
GetPid
GetMeta
Sleep
Unix
UnixNano
_D
GetCommand
GetLastError
SetErrorFilter
_N
_C
_Cross
JSON.parse
JSON.stringify
Encode
MD5
UUID
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
Volume Indicators
Volatility Indicators
Cycle Indicators
Price Transform
Statistic Functions
Math Transform
Math Operators
Pattern Recognition
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Get the current file pointer position.

tell()

Examples

Track position during file operations.

javascript
function main() { let file = os.open("data.txt", "r+") Log("Initial position:", file.tell()) // Output: Initial position: 0 file.write("Hello") Log("After write position:", file.tell()) // Output: After write position: 5 file.close() }

Returns

TypeDescription

number

Returns the current file pointer position (offset in bytes).

See Also

Remarks

Returns the byte offset of the current file pointer relative to the beginning of the file.