I trying to write into the txt file. But with out losing the data that is already stored in the file.
But my problem that when I put string in the txt file, the
Create a separate variable to emphasize that, appending to file.
boolean append = true; pw = new PrintWriter(new FileWriter(new File("filepath.txt"), append));