title: how to write into a text file in Java
body: <p>I am doing a project in java and in that i need to add and modify my
  text file at runtime,which is grouped in the jar.</p>
  
  <p>I am using class.getResourceAsStream(filename) this method we
  can read that file from class path.</p>
  
  <p>i want to write into the same textfile.</p>
  
  <p>What is the possible solution for this.
  If i can't update the text file in jar what other solution is there?
  Appreciate any help.</p>