File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 989
Try some third party APIs e.g
I agree. Here's the link:
subject: Listen to file changes
It's not a secret anymore!