views:

353

answers:

1

Hello all,

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

+3  A: 

Here is a solution based on RandomAccessFile:

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

Vinko Vrsalovic