You can try something like this
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class FileAppend {
public FileAppend() {
}
public static void main(String[] args) {
File file = new File("test.txt");
String string = "Testings";
try {
FileWriter outFile = new FileWriter(file,true); // <-- true us the append tihng
outFile.write(string);
outFile.close();
} catch (IOException ioe) {
}
}
}