C++ How to check the last modified time of a file

后端 未结 6 789
别跟我提以往
别跟我提以往 2021-02-12 16:35

I\'m caching some information from a file and I want to be able to check periodically if the file\'s content has been modified so that I can read the file again to get the new c

6条回答
  •  独厮守ぢ
    2021-02-12 17:20

    Also note that after copying a file (on Windows) the copy's last_write_time is the last_write_time of the original file rather than the time the copy was created, as one would naively think.

提交回复
热议问题