title: Writing to a properties file does not work
body: <p>I want to write into a *.properties file. Thats my code how I do this:</p>
  
  <pre><code>    properties = loadProperties("user.properties");//loads the properties file
      properties.setProperty(username, password);
          try {
                  properties.store(new FileOutputStream("user.properties"), null);
                  System.out.println("Wrote to propteries file!" + username + " " + password);
  </code></pre>
  
  <p>I do not get an exception, but I also do not get the output written into the file.</p>
  
  <p>Here is also my file-structure:</p>
  
  <p><img src="https://i.stack.imgur.com/dalq1.png" alt="enter image description here"></p>
  
  <p>I appreciate your answer!!!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I load my properties file with:</p>
  
  <pre><code>    InputStream in = ClassLoader.getSystemResourceAsStream(filename);
  </code></pre>
  
  <p>My question is, how to load it from a specific path?</p>
  
  <p>Here is my "new" File Structure:</p>
  
  <p><img src="https://i.stack.imgur.com/jUvMr.png" alt="enter image description here"></p>