Code example for FileWriter

Methods: write

0
		if (writer == null || cmd == null) {
			Logger.w("Writer should not be null when writing to script cache"); 
		} 
		try { 
			Logger.w("Adding line to script: " + cmd);
			writer.write(cmd);
			writer.write("\n");
		} catch (IOException e) {
			Logger.w("Cannot write to script cache writer: " + cmd, e);
		} 
	} 
 
}