Working With Properties file using java

//Reading Properties file

Properties p = new Properties();

try{
p.load(new FileInputStream("propertyname.properties");

}
catch(Exception e ){
e.printStackTrace();
}


//Writing Properties file

Properties p = new Properties();
try{
p.load(new FileOutputStream(("propertyname.properties"),null);
}

catch(Exception e)
{

e.printStackTrace();
}

4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This is a good information.

    I found an online educational platform LearningCaff, who help to find the best training institutes in your city with your interested course. If you have interested in Java course and looking for the best java training institute in Noida, you also can find there. To find the best training institute, visit Java training in Noida.

    ReplyDelete
  3. Thanks for this post ,Very informative article.I got multiple new information from here and hope it's very helpful for my next task
    Visit : https://www.dzone.co.in/python-training-in-jaipur.aspx#

    ReplyDelete