FTELL

Purpose:

Returns the current byte location of the file pointer, as measured from the beginning of the file.

Syntax:

FTELL("filename")

"filename"

-

A string. The name of the file to return the current seek location.

Returns:

An integer, the byte position of the file pointer or nothing if the operation is unsuccessful.

Example:

ftell("myheader.hdr")

 

displays the location of the file pointer at the bottom of the screen.

Remarks:

A file must be opened with FOPEN before using FTELL.

See Also:

FCLOSE

FOPEN

FSEEK