|MATLAB Function Reference|
Get file position indicator
position = ftell(fid)
returns the location of the file position indicator for the file specified by
fid, an integer file identifier obtained from
position is a nonnegative integer specified in bytes from the beginning of the file. A returned value of
position indicates that the query was unsuccessful; use
ferror to determine the nature of the error.