public static final void writeFile(File targetFile, String encoding, String[] fileContent) throws IOException {
		FileOutputStream fos = null;
		OutputStreamWriter osw = null;
		BufferedWriter writer = null;
		try {
			fos = new FileOutputStream(targetFile);
			osw = new OutputStreamWriter(fos, encoding);
			writer = new BufferedWriter(osw);
			for(String line : fileContent) {
				writer.write(line);
				writer.write('\n');
			}
		} finally {
			if(writer != null) try { writer.close(); } catch(IOException ex) {}
			if(osw != null) try { osw.close(); } catch(IOException ex) {}
			if(fos != null) try { fos.close(); } catch(IOException ex) {}
		}
	}