File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Listen to file changes" Watch "Listen to file changes" New topic
Author

Listen to file changes

James bosplhf
Greenhorn

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
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
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