@SuppressWarnings("static-access")
	public void loadConfigForOptionsforWidthHeight(String fileName, String ext)
    {
        try{
            InputStream read = new FileInputStream("./res/config/"+fileName+ext);
            if(ext == ".xml")
            {
                properties.loadFromXML(read);
            } else if(ext == ".ini")
            {
                properties.load(read);
            } else{
                System.err.println("Wrong file Exstension you entered:"+ext);
                System.exit(1);
            }
            this.widthOpt = properties.getProperty("ResWidth");
            this.Heightopt = properties.getProperty("ResHeight");
            read.close();
        }catch(Exception e){
            e.printStackTrace();
            System.exit(1);
        }
    }