Obviously enough, I want to avoid hardcoding paths and such into my application, and as a result, I\'d like to make a settings file that will store simple things like string
Based on the fact you said simplest:
Please keep in mind I didn't do any exception handling. You will need to do that for the Streams.
// Save Settings
Properties saveProps = new Properties();
saveProps.setProperty("path1", "/somethingpath1");
saveProps.setProperty("path2", "/somethingpath2");
saveProps.storeToXML(new FileOutputStream("settings.xml"), "");
// Load Settings
Properties loadProps = new Properties();
loadProps.loadFromXML(new FileInputStream("settings.xml"));
String path1 = loadProps.getProperty("path1");
String path2 = loadProps.getProperty("path2");