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>fchanged() - see if archive bit has been set</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     fchanged() - see if archive bit has been set
  Usage:    [<logical>] = fchanged(<handle>)
  Params:   integer <handle> from a previous fopen() or fcreate()
  Returns:  .T. if the file has been updated since the last time
            the DOS program backup had backed it up, .F. if not.

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

                 if fchanged("test.txt")
                      @ 0,0 say "Time to backup files..."
                 endif

                 handle = fcreate("temp.txt")
                 fwrite(handle,"This is a test")
                 fclose(handle)
                 ? fchanged("temp.txt")
                 * prints .F.

                 RUN backup temp.txt A:

                 ? fchanged("test.txt")
                 * prints .T.


See Also: fsetattr() fgetattr() ferror()

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