My file is very large, so I don't want to read and search the whole file. Is there a way in java I could search from the end of the file line by line, and then replace a certain part of it?
My file looks like this:
Line 1
Line 2
Line 3
......
Line 99995
Line 99996
abc_
Line 99998
Line 99999
and I want to replace abc_ to def_