Writing a Properties File


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Properties properties = new Properties();
  2. try
  3. {
  4. properties.store(
  5. new FileOutputStream("filename.properties"), null);
  6. }
  7. catch (IOException e)
  8. {
  9. // implement catch logic
  10. }

URL: http://www.exampledepot.com/egs/java.util/Props.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.