I would like to write to a file after a set of characters. For example, if I want to write xyz into a file test.txt which contains string hello world. I want write after the letter w. The output should be hello wxyzorld in the file.
How do it do it? Using a FileWriter and BufferedWriter I can write to a file but not at a certain position. Could you help me if there is anyway I can do it?