Horje
java store data Code Example
java store data
//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




Java

Related
longadder Code Example longadder Code Example
java check if string contains multiple words Code Example java check if string contains multiple words Code Example
x^n+y^n=z^n Code Example x^n+y^n=z^n Code Example
how to secure specific url in spring security Code Example how to secure specific url in spring security Code Example
java crypto ke random Code Example java crypto ke random Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8