A
Andrew Tucker
I have written a small program to monitor a given file and when that file is
modifed, to back it up (Like a mirror idea). The program consists of an if
statement w/in a while(true), ie it loops forever, this is chewing up my cpu
with constant 'activity', is there an easier way to do this, would i be
better to just compare every couple of minutes or is there a way of making
things run in the background and only react when the file is changed. I
haven't explained this very well but i hope someone can point me in the
right direction!
cheers, Andrew.
modifed, to back it up (Like a mirror idea). The program consists of an if
statement w/in a while(true), ie it loops forever, this is chewing up my cpu
with constant 'activity', is there an easier way to do this, would i be
better to just compare every couple of minutes or is there a way of making
things run in the background and only react when the file is changed. I
haven't explained this very well but i hope someone can point me in the
right direction!
cheers, Andrew.