title: Concatenating a number of .txt files in Java
body: <p>I have a number of <code>.txt</code> files. I would like to concatenate those and generate a text file.<br>
  How would I do it in Java?</p>
  
  <hr>
  
  <h3>Following is the case</h3>
  
  <pre><code>file1.txt file2.txt 
  </code></pre>
  
  <p>Concatenation results into </p>
  
  <pre><code>file3.txt
  </code></pre>
  
  <p>Such that the <em>contents</em> of <code>file1.txt</code> is followed by <code>file2.txt</code>.</p>