0

i have this simple method that writes to a file:

    File f = new File(address);
    FileOutputStream fos = new FileOutputStream(f);
    ObjectOutputStream oos = new ObjectOutputStream(fos);
    oos.writeObject(s);

how do i append to the file instead of losing old contents every time i run it.

Thanks,

khbq
  • 13
  • 5

0 Answers0