protected void writeFile() {
        File file = new File(fileName);
        try {
            if (!file.exists()) {
                file.createNewFile();
            }
        } catch (IOException e) {
            e.printStackTrace();
            Throwables.propagate(e);
        }

        try (
                FileWriter fileWriter = new FileWriter(file);
        ) {
            fileWriter.write(data);
        } catch (IOException e) {
            e.printStackTrace();
            Throwables.propagate(e);
        }
    }