Code example for FileWriter

Methods: closeflushwrite

0
		} 
		 
		 
		OutputStreamWriter writer = null;
		try { 
			writer = new FileWriter(hostnamePath);
			writer.write(hostname);
			 
			writer.flush();
		} finally { 
			if (writer != null)
				writer.close();
		} 
	} 
	 
	/** 
	 * remote host list utilities 
	 */ 
	public static ArrayList<String> getRemoteHostList(Context context) throws IOException {
		BufferedReader inReader = null;
Connect your IDE to all the code out there  Get Codota for Java