contents   index   previous   next



Clib.ftell()

syntax:

Clib.ftell(filePointer)

where:

filePointer - pointer to file to use.

 

return:

number - current value of the file position indicator, or -1 if there is an error, in which case an error value will be stored in Clib.errno.

 

description:

This method sets the position offset of the file pointer of an open file stream from the beginning of the file. For text files, not opened in binary mode, the file position may not correspond exactly to the byte offset in the file. Returns the current value of the file position indicator, or -1 if there is an error, in which case an error value will be stored in Clib.errno.

 

see:

Clib.fseek()

 

 


Clib.fwrite()