I have to read a text file from my Java application.
The file contains many rows and this file is updated every X minutes from an external unknown application that appends new lines to the file.
I have to read all the rows from the file and then I have to delete all the records that I've just read.
Is it possibile to let me read the file row by row, deleting each row I read and at the same time allowing the external application to append other rows to the file?
This file is located in a Samba shared folder so I'm using jCIFS to read/write the file and BufferedReader Java class.
thanks in advance
I don't know the perfect solution to your problem, but I would solve it differently:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With