code: public static void createFile(String output, String content) throws Exception {
  		OutputStreamWriter fw = null;
  		PrintWriter out = null;
  		try {
  			if (ENCODING == null)
  				ENCODING = PropsUtil.ENCODING;
  
  			fw = new OutputStreamWriter(new FileOutputStream(output), ENCODING);
  			out = new PrintWriter(fw);
  			out.print(content);
  		} catch (Exception ex) {
  			throw new Exception(ex);
  		} finally {
  			if (out != null)
  				out.close();
  			if (fw != null)
  				fw.close();
  		}
  
  	}
docs: write the content to a file;
  
  @param output
  @param content
  @throws Exception