Posted By

springett on 01/04/07


Tagged

java properties


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

The_Englishman
olivernautsch
bsteadman
chinyeh
vkolev
LarryStreeter
dogrizz


Reading a Properties File


 / Published in: Java
 

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

reading in a properties file from the file system

  1. Properties properties = new Properties();
  2. try
  3. {
  4. properties.load(new FileInputStream("filename.properties"));
  5. }
  6. catch (IOException e)
  7. {
  8. // implement catch logic
  9. }

Report this snippet  

You need to login to post a comment.