Site Tools


ftell

Table of Contents

# $EPIC: ftell.txt,v 1.2 2006/10/06 19:08:28 jnelson Exp $

Synopsis:

$ftell(file descriptor)

Technical:

This function returns the current position of the file pointer, measured in bytes from the beginning of the file. This value can be used to save your position in the file, and you can later use

  $fseek(//file descriptor// SET //ftell-value//)

to resume your place.

The file descriptor must have been a value previously returned by the open function.

Returns:

-1   Error: //file descriptor// was not previously returned by [[open]], or //anchor// is not supported.
ftell.txt · Last modified: 2006/10/06 19:08 by 127.0.0.1