private static void writeIntoFile(String fileName) throws IOException {
		BufferedWriter bw = null;

		try {
		
			File f = new File(fileName);
			bw = new BufferedWriter(new FileWriter(f));
			for(String s : GenerateForSpim.getCommandMap().get(GenerateForSpim.DEFAULT_METHOD)) {
				bw.write(s);
				bw.newLine();
			}
			GenerateForSpim.getCommandMap().remove(GenerateForSpim.DEFAULT_METHOD);
			
			for(String key : GenerateForSpim.getCommandMap().keySet()) {
				bw.newLine();
				for(String s : GenerateForSpim.getCommandMap().get(key)) {
					bw.write(s);
					bw.newLine();
				}
			}
		} catch (IOException e) {
			System.out.println("Fehler: Unbekannter Fehler beim Schreibvorgang");
			throw e;
		} finally {
			if(bw != null) {
				bw.close();
			}
		}
	}