Hello,
I am facing a problem I cant seem to find an efficient solution for. My application is supposed to parse a text file while another process is continuously adding to it. I have tried scanner and inputstream but both seem to stop once they hit the end of the file at the moment they were initialized. Is there a way I can read the file in, so that it stops at the end of the file, then wait for a further update and then pull off the added line?
The text file can become very large and opening then closing it, then opening it again to start reading the updates is highly inefficient and I am searching for an alternative.