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

后端 未结 6 784
别跟我提以往
别跟我提以往 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:12

    Please note that there are some limitations:

    ... The [time] resolution is as low as one hour on some filesystems... During program execution, the system clock may be set to a new value by some other, possibly automatic, process ...

提交回复
热议问题