Returns the current byte location of the file pointer, as measured from the beginning of the file.
FTELL("filename")
"filename" |
- |
A string. The name of the file to return the current seek location. |
An integer, the byte position of the file pointer or nothing if the operation is unsuccessful.
ftell("myheader.hdr")
displays the location of the file pointer at the bottom of the screen.
A file must be opened with FOPEN before using FTELL.