title: Append a character at each beginning and end of line in a file using Java
body: <p>can you help me with this problem.</p>
  
  <p>I want to put some characters/text at every beginning and end of each line in my text file e.g.</p>
  
  <pre><code>Hi there
  Welcome
  </code></pre>
  
  <p>to </p>
  
  <pre><code>sometext Hi there sometext
  sometext Welcome sometext
  </code></pre>
  
  <p>Thanks</p>