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

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

    This cross-platform library (Mac, Windows, Linux) is simple to add to a project. It uses #ifdef's to compile the right implementation.

    https://github.com/jameswynn/simplefilewatcher

提交回复
热议问题