public void setConfig(String path, String name, Integer str){


        File defaultFolderConfig=new File(name);
        try {
            FileWriter defaultFolderConfigWriter=new FileWriter(defaultFolderConfig);
            if(str>0){
                defaultFolderConfigWriter.append(str.toString()+"\n");
                int ideng=0;
                for (int i = 1; i <=str ; i++) {
                    if(i==str)
                        defaultFolderConfigWriter.append(path+"\n");
                    else
                        defaultFolderConfigWriter.append(engine[ideng].getAbsolutePath()+"\n");
                        ideng++;
                }
            }
            else
              defaultFolderConfigWriter.append(path+"\n");
            defaultFolderConfigWriter.flush();
            defaultFolderConfigWriter.close();
        } catch (IOException ex) {

        }

    }