watch and capture modifications to a file using busy waits or watch services