The problem that happens to me is that I need to make a java application that reads a flat text file line by line while the file is being updated.
I explain a little better, the file will be constantly updated and will be writing lines and lines in a matter of milliseconds, the application that I must build among other things should read those lines while they are being created, line created in the file will be line read by the application and processed.
My question dear readers is this, In java, what options are there to perform the reading of the file in real time (without preventing them from continuing to write in it)? And what would be the most optimal?.
Thank you in advance for your answers. Greetings.