Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Murach's Java Servlets and JSP this week in the Servlets 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: 888
Try some third party APIs e.g
I agree. Here's the link:
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