I am trying to read a log file while it is being written to. I have tried using Scanner and RandomAccessFile and done a bit of searching but I can't find a way to get the read
methods to block until there is new IO. Because of this I have to write sleeps/waits into the code but I keep hoping there is a better way?
Thanks.