I want to save in a text file without overwriting the current data. I mean the next data that will be save will go to the new/next line whenever I save and that is my problem, I don't know how to do that.
Could someone help me about this matter?
Here's the code in save() method :
public void save(String filename) throws IOException { FileOutputStream fOut = new FileOutputStream(filename); ObjectOutputStream outSt = new ObjectOutputStream(fOut); outSt.writeObject(this); }