public void saveFile(String outputPath) {
		BufferedWriter writer = null;
		try {
			writer = new BufferedWriter( new FileWriter(outputPath));
			writer.write(text);
		}
		catch ( IOException e) {
			e.printStackTrace();
		}
		finally {	
			try {
				if ( writer != null)
					writer.close( );
			}
			catch ( IOException e) {
				e.printStackTrace();
			}	
		}
	}