This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Position in open file


position = ftell(fileID)


position = ftell(fileID) returns the current position in the specified file. position is a zero-based integer that indicates the number of bytes from the beginning of the file. If the query is unsuccessful, position is -1. fileID is an integer file identifier obtained from fopen.

Extended Capabilities

Introduced before R2006a

Was this topic helpful?