public void writeToFile(String textLine) {
        try {
            FileWriter fw = new FileWriter(path);
            BufferedWriter bw = new BufferedWriter(fw);
            PrintWriter pw = new PrintWriter(bw);

            pw.print(textLine + "\n");

            pw.close();
        } catch (IOException e) {
        }
    }