public static void writeToken(File dir,String name,String value) throws IOException {
  Preconditions.checkArgument(dir.isDirectory(),"Need to create directory first!  %s",dir);
  File token=new File(dir,name);
  FileUtils.write(token,value,StandardCharsets.UTF_8);
}

public static void writeToken ( File dir , String name , String value ) throws IOException { Preconditions . checkArgument ( dir . isDirectory ( ) , "Need to create directory first!  %s" , dir ) ; File token = new File ( dir , name ) ; FileUtils . write ( token , value , StandardCharsets . UTF_8 ) ; }
writes a file with the given name , to the given directory , containing the given value .
