title: How to write a conf file for Java?
body: <p>I am writing a code in Processing 2.0 and have embedded it in Java environment using Eclipse. The code has many parameters which I frequently need to access in all classes. Below is the example of parameters I work with in the program.</p>
  
  <pre><code>imgPath = "~/data/img/A.svg";
  dataFile = "~/data/log.csv";
  N = 64.4;
  S = 52.0;
  </code></pre>
  
  <p>Most of the parameters are file directory paths or few global parameters. I want to create a config file that can hold all the above parameters which I can included in my Java program. A typical usecase would be when I hand over this program to someone else and he just changes the parameters in the conf file and rest works fine.</p>
  
  <p>Can someone please give me an example of a conf file for Java and how to include it in the program?
  Thanks</p>