title: Remove line breaks in CSV file
body: <p>In need open my <strong>CSV file</strong> and replace the line breaks in column number 44 in c#.</p>
  
  <p>This is the string on the CSV file :</p>
  
  <pre><code>9|D60||08/12/2018 19:09:19|08/12/2018 19:30:07|00:20:48|08/12/2018 22:00|A|L|M|D60 SM |D60 MA    |0|19|0|3175|0|3|00:03:25|20,98|0,017|0|0|NO|NO|-|CO|CH|CA|-|D60 - B|DP6 - F|DP6 - L|NO|-|-|DP6 - L|- - -|ND|ND|NO|-|NO|--dic
  
  -acc |-|-|0|0|
  </code></pre>
  
  <p>I have tried withous success this code :</p>
  
  <pre><code>   output = System.Web.HttpContext.Current.Server.MapPath("csv/target_" + DateTime.Now.AddDays(-1).ToString("dd-MM-yyyy") + ".csv")
     string so = System.IO.File.ReadAllText(output);
     string[] arr = so.Split('-');
     for (int i = 2; i &lt; arr.Length; i = i + 44)
        {
           arr[i] = arr[i].Replace(Environment.NewLine, " ");
         }
     string res = String.Join("", arr);
     System.IO.File.WriteAllText(output, res);
  </code></pre>
  
  <p>For this new output with only one line :</p>
  
  <pre><code>9|D60||08/12/2018 19:09:19|08/12/2018 19:30:07|00:20:48|08/12/2018 22:00|A|L|M|D60 SM |D60 MA    |0|19|0|3175|0|3|00:03:25|20,98|0,017|0|0|NO|NO|-|CO|CH|CA|-|D60 - B|DP6 - F|DP6 - L|NO|-|-|DP6 - L|- - -|ND|ND|NO|-|NO|--dic-acc |-|-|0|0|
  </code></pre>
  
  <p>How to do resolve this ?</p>