title: How to monitor a directory for files in C++?
body: <p>I need to monitor a directory which contains many files and a process reads and deletes the .txt files from the directory; once all the .txt files are consumed, the consuming process needs to be killed. How do I check if all the .txt files are consumed using C++?
  I am developing my application on Visual Studio on windows platform.</p>