public static void write(Map<?, ?> map, File file) {

		BufferedWriter writer = null;

		try {
			writer = new BufferedWriter(new FileWriter(file));

			for (Map.Entry<?, ?> entry :  map.entrySet()) {

				writer.write(entry.getKey() + "=" + entry.getValue() + System.lineSeparator());
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {

			if (writer != null)
				try {
					writer.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
	}