Development Assistance Opening File

Discussion in 'Plugin Help/Development/Requests' started by Saith1998, Dec 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Saith1998

    Hello I want to know how to load a File with a different ending like .mini. Because if i try this
    Code:
    File icon = new File("plugins/iConomy/accounts.mini");
            FileConfiguration iconcfg = YamlConfiguration.loadConfiguration(icon);
    try {
                    iconcfg.load(icon);
                } catch (FileNotFoundException e1) {
                    // TODO Auto-generated catch block
                    e1.printStackTrace();
                } catch (IOException e1) {
                    // TODO Auto-generated catch block
                    e1.printStackTrace();
                } catch (InvalidConfigurationException e1) {
                    // TODO Auto-generated catch block
                    e1.printStackTrace();
                }
    
    I get an error.
     

    Attached Files:

    • CMD.png
      CMD.png
      File size:
      67.5 KB
      Views:
      8
  2. Offline

    Darkpicasa

    What's wrong with yml files?
     
  3. Offline

    Saith1998

    Darkpicasa The reason why is because the file ends with mini
     
  4. Offline

    Aqua

    Darkpicasa likes this.
  5. Offline

    Saith1998

    Aqua if I change it from mini to yml. The other plugin will crash.
     
  6. Offline

    mine-care

    Can we see the file as well?
     
  7. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
     
Thread Status:
Not open for further replies.

Share This Page