Reading a Properties File


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

reading in a properties file from the file system


Copy this code and paste it in your HTML
  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. }

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.