public void flush() 
	{
		BufferedWriter saveWriter = null;
		
		try
		{
			saveWriter = new BufferedWriter(new FileWriter(saveFile));
			
			saveWriter.write("# Automatically generated file; DO NOT EDIT\n");

			saveWriter.write("#Contacts\n");
			for(Contact contact : contactList)
			{
				saveWriter.write(((ContactImpl)contact).toCSV() + "\n");
			}

			saveWriter.write("#\n");
			saveWriter.write("#Meetings\n");
			for(Meeting meeting : meetingList)
			{
				saveWriter.write(((MeetingImpl)meeting).toCSV() + "\n");
			}
		}
		catch (IOException ioe) 
		{
			ioe.printStackTrace();
		}
		finally
		{
			closeWriter(saveWriter);
		}
	}