Properties p = new Properties();
p.load(new FileInputStream("src/config.ini"));
p.setProperty("DBuser", "oo");
System.out.println("user = " + p.getProperty("DBuser"));
System.out.println("password = " + p.getProperty("DBpassword"));
System.out.println("location = " + p.getProperty("DBlocation"));
p.save(new FileOutputStream("src/config.ini"), "ok");
p.list(System.out);
p.load(new FileInputStream("src/config.ini"));
p.setProperty("DBuser", "oo");
System.out.println("user = " + p.getProperty("DBuser"));
System.out.println("password = " + p.getProperty("DBpassword"));
System.out.println("location = " + p.getProperty("DBlocation"));
p.save(new FileOutputStream("src/config.ini"), "ok");
p.list(System.out);