New course! Every coder should learn Generative AI!
Try a free lesson0
How can i write data to a file without overwriting the current content in the file
adding content to a java file
1 Answer
0
You can use FileWriter class for it with true as optional argument. here is the link
http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java