Deleting line breaks in a text file with a condition
<p>I have a text file. Some of the lines in it end with lf and some end with crlf. I only need to delete lfs and leave all crlfs.</p>

<p>Basically, my file looks like this</p>

<blockquote>
  <p>Mary had a lf</p>
  
  <p>dog.crlf</p>
  
  <p>She liked her lf</p>
  
  <p>dog very much. crlf</p>
</blockquote>

<p>I need it to be</p>

<blockquote>
  <p>Mary had a dog.crlf</p>
  
  <p>She liked her dog very much.crlf</p>
</blockquote>

<p>Now, I tried just deleting all lfs unconditionally, but then I couldn't figure out how to write it back into the text file. If I use File.WriteAllLines and put a string array into it, it automatically creates line breaks all over again. If I use File.WriteAllText, it just forms one single line.
So the question is - how do I take a text file like the first and make it look like the second? Thank you very much for your time.
BTW, I checked similar questions, but still have trouble figuring it out.</p>
