Si devo fare un file di configurazione.

Mi puoi fare un esempio veloce con i properties?

Stavo facendo cosi ma mi sono bloccato:

codice:
 ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(f));
		       InterfacciaPrincipale.Magazzino.Salva(out);
		       String parentD = f.getParent();
		       ObjectOutputStream out2 = new ObjectOutputStream(new FileOutputStream(parentD));
		       File f2 = new File("Conf.txt");
		       PrintWriter pw = new PrintWriter(new FileWriter(f2));
		       pw.println(f.getPath());
		       Properties p = new Properties();
		       p.