position = ftell(fid)
position = ftell(fid)returns the location of the file position indicator in the specified file.
positionis indicated in bytes from the beginning of the file.
fidis a integer file identifier obtained from
The value of position is a nonnegative integer if the query is successful. If -1 is returned, it indicates that the query was unsuccessful; use
ferror to determine the nature of the error.
(c) Copyright 1994 by The MathWorks, Inc.