Code example for FileWriter

Methods: append

0
		 
		try { 
			File flt = new File(filePath+fileName);
			flt.createNewFile();
			//FileWriter wrt = new FileWriter(flt); 
			_wrt = new FileWriter(flt);
			_wrt.append("init\r\n");
			//wrt.close(); 
		} catch (Exception e) {
			e.printStackTrace();			
		} 
	} 
	 
	public String getFileName() {
		return _fileName;
	} 
	 
	public void append(String line) {
		_log += line + "\r\n";
		appendFile(line);
	}