User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

ftell [2006/10/06 19:08] (current)
Line 1: Line 1:
 +# $EPIC: ftell.txt,v 1.2 2006/10/06 19:08:28 jnelson Exp $
 +$[[ftell]](//​file descriptor//​)
 +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. ​
 +-1   ​Error:​ //file descriptor//​ was not previously returned by [[open]], or //anchor// is not supported.
ftell.txt ยท Last modified: 2006/10/06 19:08 (external edit)