title: Open and edit file in .jar with Java?
body: <p>How would you go about opening an .xml file that is within a .jar and edit it?</p>
  
  <p>I know that you can do...</p>
  
  <pre><code>InputStream myStream = this.getClass().getResourceAsStream("xmlData.xml");
  </code></pre>
  
  <p>But how would you open the xmlData.xml, edit the file, and save it in the .jar? I would find this useful to know and don't want to edit a file outside of the .jar... <strong>and the application needs to stay running the entire time!</strong></p>
  
  <p>Thank you!</p>