Question

How to read a web server log file in Java. This file is getting updated all the time. If I open a new FileInputStream, will it read the log real time?

Regards

Was it helpful?

Solution

Here is a solution based on RandomAccessFile:

http://www.informit.com/guides/content.aspx?g=java&seqNum=226

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top