writing to file
I'm trying to write contact details to a file. The code I've written so far writes all the details in a single line and i want each item to be on a new line. How do I do this?
BufferedWriter addressbook = new BufferedWriter(new FileWriter("AddressBook.buab"));
catch (IOException exception)
Also, I think that every time I run the program and write to the file, it is going to write over what was stored there previously. How would I go about adding that data onto the end of the current data, rather than replacing it?