import the original code that could be found here:
http://deetah.jogger.pl/2010/07/20/11-52-fdwatch-ile-twoj-proces-przemielil-juz-pliku/
http://wklej.org/id/366597/txt/