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>fbof() - see if file pointer is at beginning of file</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     fbof() - see if file pointer is at beginning of file
  Usage:    <logical> = fbof(<handle>)
  Params:   integer <handle> from a previous fopen() or fcreate()
  Returns:  logical .T. if file pointer is at the beginning of the
            file, .F. if it is not

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

                 handle = fopen("test.txt")
                 if fbof(handle)
                      @ 0,0 say "At beginning of file"
                 else
                      fseek(handle,(ftell(handle)-16))
                      ? freadstr(handle,16)
                 endif


See Also: feof() ftop() fbot() ferror()

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