title: How to use Java to edit a template document (form letter) from a file?
body: <p>I'm playing with Java for the first time and need to be able to replace some words in a template. example template - </p>
  
  <p>"Dear PUT_THEIR_NAME_HERE,</p>
  
  <p>I'm contacting you ..... bla bla bla</p>
  
  <p>Regards,</p>
  
  <p>PUT_COMPANY_NAME_HERE"</p>
  
  <p>What's the simplest way (preferably using the standard library) to make a copy of this template file and add the correct words at the correct place then save it to the file system? I have to do many such simple templates so a way that can be easily replicated would be nice.</p>
  
  <p>I'm also accessing Java through JavaScript using Rhino, not sure if this makes any difference or not.</p>
  
  <p>Regards,</p>
  
  <p>Chris</p>