public String readIWADConfig(String name,int  id, int mode){
        File conf=new File(name);
        String buff;
        try {
            BufferedReader bf=new BufferedReader(new FileReader(conf));
            try {
                if(mode==1)
                    return bf.readLine();
                if(mode==2)
                    buff=bf.readLine();
                    for (int i = 0; i <=id; i++) {
                        buff=bf.readLine();
                        if (i==id) {
                            return buff;
                        }
                    }

            } catch (IOException ex) {

            }
        } catch (FileNotFoundException ex) {
            Printer.print(ex.toString());
        }
        return null;
    }