I am programming something which involves certain files changing every second. Now, if the files are not changed for, say, 10 seconds it means that some error has occured somewhere, externally. So, I want the user to know about it. How can I implement this?
Sorry cant add comments due to some problem.
@Jeremy – Very small. Precisely, It wont exceed 10-15 characters.
Investigate the FileSystemWatcher class. You should be able to keep track of the last time something changed, then use a timer to continuously check the difference in time.