MATLAB Function Reference | ![]() ![]() |
Syntax
Description
position = ftell(fid)
returns the location of the file position indicator for the file specified by fid
, an integer file identifier obtained from fopen
. The position
is a nonnegative integer specified in bytes from the beginning of the file. A returned value of -1
for position
indicates that the query was unsuccessful; use ferror
to determine the nature of the error.
See Also
fclose
, ferror
, fopen
, fprintf
, fread
, fscanf
, fseek
, fwrite
![]() | fseek | full | ![]() |