title: Concatenate lines in a file
body: <p>I have a number of data files which contain lines of contiguous character blocks, e.g.</p>
  
  <pre><code>thisisthefirstline
  thisisthesecondline
  thisisthethirdline
  </code></pre>
  
  <p>I am reading in each of these lines and concatenating them to create one long String which I then process. My question is, is there an elegant way to handle the concatenation of lines within a plaintext file?</p>
  
  <p>Currently I am performing this task as follows:</p>
  
  <pre><code>BufferedReader br = new BufferedReader(new FileReader(sequence));
  String line;
  String sequence = "";
  while ((line = br.readLine()) != null)
      sequence += line;
  // do stuff with sequence here
  </code></pre>
  
  <p>Is there a way to achieve this using only the <code>sequence</code> container variable, and not the <code>line</code> temporary variable?</p>