title: Reading from a file in C# without the newline character
body: <p>i want to read from a text file in C#. But I want all the lines in the file to be concatenated into one line. </p>
  
  <p>for example if i have in the file as</p>
  
  <p>ABCD</p>
  
  <p>EFGH</p>
  
  <p>I need to read ABCDEFGH as one line.</p>
  
  <p>I can do this by reading one line at a time from the file and concatenating that line to a string in a loop. But are there any faster method to do this?</p>