title: How to add properties file into Java project?
body: <p>I am using <code>.properties</code> file for my project and Netbeans 6.9.1 IDE. How can I add my properties file into the code?</p>
  
  <pre><code>  String prop="c:\\Config.properties";
      Properties Config= new Properties();
     Config.load(new FileInputStream(prop));
     f1=Config.getProperty("f1");
     f2=Config.getProperty("f2");
  </code></pre>
  
  <p>How can I define my Build path instead of <code>"c:\\Config.properties"</code>?</p>
  
  <p>Is there any way to add this file directly to the project?</p>