First things first: What Operating System are you using?
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
In that case use inotify . With inotify you can check in your program if changes have been made to a directory or file. No need for manual timestamp checking whatsoever! Example program is on page I linked to.
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403