3

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

jjnguy
  • 136,852
  • 53
  • 295
  • 323
vphomealone
  • 153
  • 1
  • 4
  • 7

1 Answers1

4

Here is a solution based on RandomAccessFile:

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

Vinko Vrsalovic
  • 330,807
  • 53
  • 334
  • 373