title: Remove a linebreak in c#
body: <p>I have the following lines of text:</p>
  
  <pre><code>W&amp;BL 15&amp;384&amp;320&amp;214&amp;1&amp;S235JR&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.267&amp;&amp;&amp;&amp;4&amp;&amp;
  N&amp;214.nc
  A&amp;214&amp;1&amp;&amp;15
  W&amp;BL 15&amp;384&amp;320&amp;215&amp;1&amp;S235JR&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.267&amp;&amp;&amp;&amp;4&amp;&amp;
  N&amp;215.nc
  A&amp;213&amp;2&amp;&amp;14
  </code></pre>
  
  <p>I want to remove the linebreaks so the outcome will be like this:</p>
  
  <pre><code>A&amp;213&amp;2&amp;&amp;14W&amp;BL 15&amp;384&amp;320&amp;214&amp;1&amp;S235JR&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.267&amp;&amp;&amp;&amp;4&amp;&amp;N&amp;214.nc
  A&amp;214&amp;1&amp;&amp;15W&amp;BL 15&amp;384&amp;320&amp;215&amp;1&amp;S235JR&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.267&amp;&amp;&amp;&amp;4&amp;&amp;N&amp;215.nc
  </code></pre>
  
  <p>I do this because I need to format these lines and I'm putting the whole textfile in a reader per line. When I filter this with linebreaks I can't properly search through the lines. Since I need to delete everything after the <code>S235JR</code>, replace the <code>&amp;</code> with <code>;</code> and start the line with the <code>BL</code> code.</p>
  
  <p>If someone knows a smarter/better solution to filter these lines, you will be my hero of the day.</p>
  
  <p>Edit for clarification:</p>
  
  <p>This is a example and how it needs to be formatted:</p>
  
  <pre><code>H&amp;HEA100&amp;1712&amp;&amp;1001&amp;2&amp;S235JR&amp;&amp;&amp;HEA100 -  1712&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.96&amp;&amp;&amp;&amp;2&amp;&amp;&amp;1.7&amp;0.2&amp;0.2
  N&amp;1001.nc
  W&amp;BL 15&amp;384&amp;320&amp;215&amp;1&amp;S235JR&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.267&amp;&amp;&amp;&amp;4&amp;&amp;
  N&amp;215.ncA&amp;214&amp;1&amp;&amp;15
  H&amp;L80X8&amp;375&amp;&amp;1010&amp;1&amp;S275JR&amp;&amp;&amp;L80X8 -  375&amp;&amp;&amp;&amp;&amp;&amp;&amp;S&amp;&amp;0.117&amp;&amp;&amp;&amp;4&amp;&amp;&amp;0.4&amp;0.1&amp;0.1
  N&amp;1010.nc
  </code></pre>
  
  <p>After formatting:</p>
  
  <pre><code>H;HEA100;1712;;1001;2;S235JR;
  BL 15;384;320;215;1;S235JR;
  L80X8;375;;1010;1;S275JR;
  </code></pre>
  
  <p>The input is a text file imported with a StreamReader. The <code>H</code>, <code>BL 15</code> and <code>L80X8</code> are determined after 6 <code>&amp;</code> characters. The program was originally written in DOS and I need to convert it into C#. I'm sorry for the confusion.</p>