title: Concatenating strings from multiple lines in a file separated by newlines
body: <p>If I have a file with multiple lines like:  </p>
  
  <pre><code>name1  
  12345  
  67890
  
  name2  
  23456  
  78901
  
  name3  
  34567  
  89012
  </code></pre>
  
  <p>How would I go about concatenating each line in the form:</p>
  
  <pre><code>"name1 1234567890"
  
  "name2 2345678901"
  
  "name3 3456789012"
  </code></pre>
  
  <p>Specifically, what is the best way to concatenate strings from a file into a single line until an empty line is encountered?</p>