public static void writeStringToFile(File file,String data) throws IOException {
  writeStringToFile(file,data,Charset.defaultCharset(),false);
}

public static void writeStringToFile ( File file , String data ) throws IOException { writeStringToFile ( file , data , Charset . defaultCharset ( ) , false ) ; }
writes a string to a file creating the file if it does not exist using the default encoding for the vm .
