Java Code needed to be notified when a file has been modified
Posted on 2002-05-23
I was wandering if there's a way for a running piece of code that has a reference to a File to be notified when the text file, for example, was modified. The specific situation I have is that if I have a text file that has a number of properties for the class, then the class will be notified to reload the properties without having to be restarted.
This is intended to run with an application server that I don't believe I can use JDK 1.4. I'd be using JDK 1.3.x.
Thanks in advance.