Thank you.
I have talked with some people on IRC and they talk about a similar hooking of the systems low-level
API to be able to be notified when a file has changed.
In particular on Linux,I think I should hook the fclose function by writing a kernel module to "overwrite" it a user-defined one.