Données Java Store

//Open a file
File properties = new File("properties.txt");

//Writing
Properties p = new Properties();
p.setProperty("johndoe.pin", "12345");
p.store(new FileOutputStream(properties), null);
        
//Reading
Properties p = new Properties();
p.load(new FileInputStream("properties.txt", "");
p.getProperty("johndoe.pin"); //Returns the value if presents, otherwise null
Alby7503