public void saveString(String[] string, File file, String path) throws Exception {
        if (file.exists()) {
            file.delete();
        }
        createNewFile(file, path);
        FileOutputStream buf = new FileOutputStream(file, true);
        ObjectOutputStream oos = new ObjectOutputStream(buf);
        oos.writeObject(string);
        oos.flush();
        oos.close();
    }