Code example for FileWriter

Methods: closeflushappend

0
	 	try 
	 	{ 
 
	 		String root = "/data/data/com.fakelg.weatherwig";
	 		File gpxfile = new File(root, sFileName);
	 		FileWriter writer = new FileWriter(gpxfile);
	 		writer.append(dane);
	 	    writer.flush();
	 	    writer.close();
	 	     
	 	} 
	 	catch(IOException e)
	 	{ 
	 	     e.printStackTrace();
	 	} 
    } 
	 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub 
Stop searching for code, let great code find you!  Add Codota to your java IDE