title: JAVA: FileInputStream and FileOutputStream
body: <p>I have this strange thing with input and output streams, whitch I just can't understand.
  I use inputstream to read properties file from resources like this:</p>
  
  <pre><code>Properties prop = new Properties();
  InputStream in = getClass().getResourceAsStream( "/resources/SQL.properties" );
  rop.load(in);
  return prop;
  </code></pre>
  
  <p>It finds my file and reds it succesfully. I try to write modificated settings like this:</p>
  
  <pre><code>prop.store(new FileOutputStream( "/resources/SQL.properties" ), null);
  </code></pre>
  
  <p>And I getting strange error from storing:</p>
  
  <pre><code>java.io.FileNotFoundException: \resources\SQL.properties (The system cannot find the path specified)
  </code></pre>
  
  <p>So why path to properties are changed? How to fix this?
  I am using Netbeans on Windows</p>