I need help on the file operation using FileChannel
. My requirement is, I have to read a big file from the system, then need to check the file line by line. If certain strings found then need to add new lines or delete old lines from the file. And then need to save the data.
N.B.
- I am trying to avoid temp file creation.
- Like to do it with FilChannel
- Also like to open a single file channel with read and write. To do that I have used
RandomAccessFile
to getFileChannel
.
Please help me on this.