I want to insert the data at some positions in the text file without actually overwriting on the existing data.I tried RandomAccessFile ….but that also overwrites it….
Is there any way to insert the data without overwriting??
-Thanks in advance
I want to insert the data at some positions in the text file without
Share
You have to read your file and rewrite it. During this operation you have to find the place where you want to put your text and write it.