FUNCTION REFERENCE

ftell

Current position in a file, in bytes from the start.

Current position in a file, in bytes from the start.

Syntax

position = ftell(fid)

Example

fid = fopen('b.bin'); fseek(fid, 2, 'bof'); ftell(fid)   % 2

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.