public static YamlConfiguration readFromFile(File file) throws IOException {
  YamlConfiguration yc=new YamlConfiguration();
  yc.read(file);
  return yc;
}

public static YamlConfiguration readFromFile ( File file ) throws IOException { YamlConfiguration yc = new YamlConfiguration ( ) ; yc . read ( file ) ; return yc ; }
read yaml from a file .
