How do I remove the newlines from this string?
<p>I've spent many, many hours looking for answer.  If you look up remove new lines on this site, it gives answers that looks like would work, but I can't get those to work.</p>

<pre><code>string TextFileBlock = File.ReadAllText("TextFile.txt");

 char newlinechar = '\n' ;

 TextFileBlock = TextFileBlock.Replace(" ", String.Empty); //works for the spaces

 TextFileBlock = TextFileBlock.Replace(newlinechar.ToString(), String.Empty);

///Does not get rid of the newlines. The enter key.

      // TextFileBlock = TextFileBlock.Replace("\n", String.Empty);// not works
      //TextFileBlock.Replace(Environment.NewLine, string.Empty);//not works
</code></pre>

<p>C# question</p>