Posted By

springett on 01/04/07


Tagged

java properties


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

The_Englishman
olivernautsch
bsteadman
chinyeh
vkolev


Writing a Properties File


 / Published in: Java
 

URL: http://www.exampledepot.com/egs/java.util/Props.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. }

Report this snippet  

You need to login to post a comment.