Code example for BufferedWriter

Methods: close, newLine, write

0
			(new File( "Updatr")).mkdir();
		} 
 
		try { 
			 
			BufferedWriter bw = new BufferedWriter(new FileWriter("Updatr" + slash + name + ".updatr"));
			 
			bw.write( "name=" + name );
			bw.newLine();
			 
			bw.write( "version=" + version );
			bw.newLine();
			 
			bw.write( "url=www.prydwen.net/minec/latest" + prefix + "/" + name + ".updatr");
			bw.newLine();
			 
			bw.write( "file=www.prydwen.net/minec/latest" + prefix + "/" + name + ".updatr");
			bw.newLine();
			 
			bw.write( "notes=");
			bw.newLine();
			 
			bw.close();
			 
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}