title: save properties file android apps
body: <p>I have a problem to store a properties file in android, this is the code:</p>
  
  <pre><code>Properties prop = new Properties();
  prop.load(context.getResources().openRawResource(R.raw.config));
  
  Utils.log(context,"db.version =&gt;"+ prop.get("db.version"));
  
  prop.setProperty("db.version", "2");
  String fileName = context.getResources().getString(R.raw.config);
  FileOutputStream fos = new  FileOutputStream(fileName);
  prop.store(fos, "");
  </code></pre>
  
  <p>when i try to load (and print) there isn't problems, but when i try to save my new set, I receive FileNotFoundException</p>
  
  <p>here LogCat:</p>
  
  <pre><code>03-22 18:05:03.262: INFO(11536): db.version =&gt;1
  03-22 18:05:03.262: ERROR(11536): java.io.FileNotFoundException: /res/raw/config.properties (No such file or directory)
  </code></pre>
  
  <p>thanks in advance...</p>