Checking for Modification to a Set of Files



What is the best way to write a program to check a set of files for
changes to their content? I want to be able to have tasks executed
based on this change.

.