Posted By

dalcacer on 03/09/10


Tagged

properties


Versions (?)

Load properties


 / Published in: Java
 

  1. FileInputStream stream = null;
  2. configuration = new Properties();
  3. URL relProppath = getClass().getResource("../../config.properties");
  4. stream = new FileInputStream(relProppath.getFile());
  5. configuration.load(stream);
  6. stream.close();

Report this snippet  

You need to login to post a comment.