public static void writeToFile(String content,File dstFile) throws IOException {
  BufferedWriter bufferedWriter=new BufferedWriter(new FileWriter(dstFile,false));
  bufferedWriter.write(content);
  bufferedWriter.close();
}

public static void writeToFile ( String content , File dstFile ) throws IOException { BufferedWriter bufferedWriter = new BufferedWriter ( new FileWriter ( dstFile , false ) ) ; bufferedWriter . write ( content ) ; bufferedWriter . close ( ) ; }
save string into the file
