> Can some one suggest a way to monitor a directory to see a know file
> named file is put in a directory using Java.
Even though your OS's may provide a callback mechanism for monitoring
the file system, in Java you need to poll:
File f = new File("/some/directory/myfile.foo");
while (!f.exists()) Thread.sleep(10);
/gordon
--
> Can some one suggest a way to monitor a directory to see a know file
> named file is put in a directory using Java.
See this simple file watcher,
http://www.rgagnon.com/javadetails/java-0490.html
Bye.

Signature
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html
smartnhandsome - 17 Oct 2007 21:17 GMT
Thanks Real and Gordon your response.