Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>ftell() - get current file pointer position</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     ftell() - get current file pointer position
  Usage:    <integer> = ftell(<handle>)
  Params:   integer <handle> from a previous fopen() of fcreate()
  Returns:  integer equal to the current file position, -1 if error

 ---------------------------------- Example ---------------------------------

                 handle = fopen("test.txt")
                 fseek(handle,1000)
                 ? ftell(handle)     && prints 1000
                 ftop(handle)
                 ? ftell(handle)     && prints 0
                 fclose(handle)


See Also: flen() filesize() ferror()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson