Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - getfiletime() get the time stamp of a file http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getfiletime()       Get the time stamp of a file
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func logical getfiletime extern
   param const char    cFile, ;
               date    dDate, ;
               char(8) cTime

 Arguments
   cFile is the name of file to check.
   dDate receives the date stamp of the file.
   cTime receives the time stamp of the file.

 Return
   A logical indicating the success of operation.

 Description
   The getfiletime() function retrieves the date/time attributes of a
   file. The date/time values are placed into the parameters passed by
   reference.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_getfiletime
   vardef
      date    dDate
      char(8) cTime
   enddef
   set alternate to "test.txt"             // create file
   set alternate on
   ? "File date and time:"
   getfiletime( "test.txt", dDate, cTime ) // get file date/time
   ? dDate, cTime                          // display
   set alternate off                       // clean up
   erase "test.txt"
   endproc

   proc main
   Test_getfiletime()
   endproc

See Also: filetime() setfiletime()

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