private static void getConfigParameterFromFile(String FileName) {
        try {
            String[] token;
            Scanner scan = new Scanner(new File(FileName));
            while (scan.hasNextLine()) {
                String line = scan.nextLine();
                token = line.split(" ");
                if ("Precision".equals(token[0]))
                    floatPrecision= Float.parseFloat(token[1]);
                else if ("XMin".equals(token[0]))
                    floatXMin=Float.parseFloat(token[1]);
                else if ("XMax".equals(token[0]))
                    floatXMax=Float.parseFloat(token[1]);
                else if ("TasaDeCruces".equals(token[0]))
                    floatTasaDeCruces=Float.parseFloat(token[1]);
                else if ("TasaDeMutaciones".equals(token[0]))
                    floatTasaDeMutaciones=Float.parseFloat(token[1]);
                else if ("TamanioPob".equals(token[0]))
                    intTamanioPob=Integer.parseInt(token[1]);
                else if ("NumGeneraciones".equals(token[0]))
                    intNumGeneraciones=Integer.parseInt(token[1]);
            }
        } catch (FileNotFoundException ex) {
            System.out.println("Error with file "+FileName+":"+ex.getMessage());
            System.exit(-1);
        }
    }