code: public static void writeTXT(String string, File file) throws IOException {
  		BufferedWriter out = new BufferedWriter(new FileWriter(file));
  		out.write(string);
  		out.close();
  	}
docs: Writes the string into the file.