Code example for FileWriter

Methods: flush, write

0
		this.developmentMode = developmentMode;
	} 
 
	private void openFileLogIfPossible() { 
		try { 
			fileLog = new FileWriter(new File(this.projectLocation, "log.roo"), true);
			// first write, so let's record the date and time of the first user 
			// command 
			fileLog.write("// Spring Roo " + versionInfo() + " log opened at " + df.format(new Date()) + "\n");
			fileLog.flush();
		} 
		catch (IOException ignoreIt) {
		} 
	} 
 
	protected void activate(ComponentContext context) {
		this.context = context;
	} 
 
	protected void deactivate(ComponentContext context) {
		close();