wood burning stoves*
The moose likes I/O and Streams and the fly likes Listen to file changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Listen to file changes" Watch "Listen to file changes" New topic

Listen to file changes

James bosplhf

Joined: Oct 13, 2013
Posts: 5
Hello ,
I need to monitor a log file on a Websphere Application Server.
I need to know the text that has been added to the file, each time that a text being added to this file.
IMPORTANT: I'm using Java 6 ("java.nio" added since Java 7 and doing what I need, but I'm using Java 6).

How should I do that ?

Thanks !
E Armitage

Joined: Mar 17, 2012
Posts: 892
Try some third party APIs e.g http://commons.apache.org/proper/commons-vfs/
I agree. Here's the link: http://aspose.com/file-tools
subject: Listen to file changes
Similar Threads
Reading a text file whilst it is in use
Why Do We Need a Console Class?
Yikes - Java .ear .jar .class
Using both BASIC and FORM authentication for different sections of same web application
Tomcat 6 start args