This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 988
Try some third party APIs e.g
Have you checked out Aspose?
subject: Listen to file changes
It's not a secret anymore!