Menu

How to get a file's date and time stamp

2002-10-03
2012-09-26
  • Nobody/Anonymous

    How do I get a date and time stamp from a file.  I'm reading from a file using fopen(), but I cannot find a way to get the date or time.  Any help would be appreciated.

     
    • Nobody/Anonymous

      The created / modified date in the windows file property thing?

       
    • Nobody/Anonymous

      yes I want to be able to use that date in my program using dev-c++.  I'm trying to compare the file's date to today's date, and if they are not the same it will give me an error.  This will make sure that the files I'm editing are current (as of the day the program is run).

       
    • Nobody/Anonymous

      yes I want to be able to use that date in my program using dev-c++.  I'm trying to compare the file's date to today's date, and if they are not the same it will give me an error.  This will make sure that the files I'm editing are current (as of the day the program is run).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.