public static void store(String fileName, Map<?, ?> map) {
        File file = new File(new File(Main.FOLDER, Main.RESULTS_FOLDER), fileName);
        BufferedWriter bwriter = null;
        FileWriter fwriter = null;
        try {
            fwriter = new FileWriter(file);
            bwriter = new BufferedWriter(fwriter);
            for (Entry entry : map.entrySet()) {
                Object key = entry.getKey();
                Object value = entry.getValue();
                bwriter.write(value.toString());
                bwriter.write(" - ");
                if (key instanceof Entry) {
                    bwriter.write(((Entry) key).getKey().toString());
                    bwriter.write(": ");
                    bwriter.write(((Entry) key).getValue().toString());
                } else {
                    bwriter.write(key.toString());

                }
                bwriter.newLine();
            }
            bwriter.flush();
        } catch (IOException e) {
            System.out.println("IO Exception (" + fileName + ")");
        } finally {
            try {
                if (bwriter != null) {
                    bwriter.flush();
                    bwriter.close();
                }
                if (fwriter != null)
                    fwriter.close();
            } catch (IOException e) {
                System.out.println("IO Exception (on close) (" + fileName + ")");
            }
        }
    }