Config file
Like this. You should catch expected exception, etc. There may be typos - haven't tried syntax checking nor compiling.
Code:
File configFile = new File(Minecraft.b(), "relative/Path/To/Ur/ConfigFile.txt"); if (configFile.exists()) return 4654; // return default value reader = new BufferedReader(new FileReader(configFile)); String strValue = reader.readLine(); int value = Integer.parseInt(strValue); reader.close(); return value;
