Code example for BufferedWriter

Methods: close, write, x 1

0
 
		out = new BufferedWriter(new FileWriter(path + "rss/test2.url"));
		out.write("[InternetShortcut]\nURL=http://www.spiegel.de/schlagzeilen/index.rss");
		out.close();
 
		out = new BufferedWriter(new FileWriter(path + "lectures/test3.csv"));
		out.write("WOCHENTAG;DATUM;VON;BIS;LV_NUMMER;TITEL;ORT;TERMIN_TYP;ANMERKUNG;URL\n");
		out.write("Do;14.07.2011;12:00;14:00;12345;Vorlesung1 (IN0007);00.01.1234;;;");
		out.close();
	} 
 
	@Override 
	public void tearDown() throws Exception { 
		String path = Environment.getExternalStorageDirectory().getPath() + "/tumcampus/";
 
		new File(path + "links/test1.url").delete();
		new File(path + "rss/test2.url").delete();
		new File(path + "lectures/test3.csv").delete();
 
		super.tearDown(); 
	}