Documentation

ftell

Position in open file

Syntax

position = ftell(fileID)

Description

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.

Was this topic helpful?