Is there a way to somehow trigger an event that will do something every time a file change? I mean something like that (in pseudo code)
if(DetectedFileModified(pathToFile)){ do stuff }
I know I can do it periodically but can I somehow do it without a timer? I want to be able to make some actions when a user is updating a txt file (not via code, but just by opening the file and writing inside) and I don't know when he'll do it.