private static void saveMapToTextFile(String fileToSaveTo) {
		FileWriter writeto = null;
		try {
			writeto = new FileWriter(fileToSaveTo, true);// true append
															// text
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if (writeto == null) {
			System.out.println("file not initialized");
			return;
		}
		for (Map.Entry<String, String> entry : rawMap.entrySet()) {
			String textadd = entry.getKey() + SPLITTER + entry.getValue()
					+ "\n";
			char[] buffer = new char[textadd.length()];
			textadd.getChars(0, textadd.length(), buffer, 0);
			try {
				writeto.write(buffer);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		try {
			writeto.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}