Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-F7C28FDA-363B-4A0F-B975-881530E9C364
Visible to Intel only — GUID: GUID-F7C28FDA-363B-4A0F-B975-881530E9C364
FTELL, FTELLI8
Portability Functions: Return the current position of a file.
Module
USE IFPORT
result = FTELL (lunit)
result = FTELLI8 (lunit)
lunit |
(Input) INTEGER(4). External unit number of a file. |
Results
The result type is INTEGER(4) for FTELL; INTEGER(8) for FTELLI8. The result is the offset, in bytes, from the beginning of the file. A negative value indicates an error, which is the negation of the IERRNO error code. The following is an example of an error code:
EINVAL: lunit is not a valid unit number, or is not open.