I'm playing with Java for the first time and need to be able to replace some words in a template. example template -
"Dear PUT_THEIR_NAME_HERE,
I'm contacting you ..... bla bla bla
Regards,
PUT_COMPANY_NAME_HERE"
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.
I'm also accessing Java through JavaScript using Rhino, not sure if this makes any difference or not.
Regards,
Chris