C# How can i remove newline characters from binary?
<p>Basically i have binary data, i dont mind if it's unreadable but im writing it to a file which is parsed and so it's importance newline characters are taken out.</p>

<p>I thought i had done the right thing when i converted to string....</p>

<pre><code>byte[] b = (byte[])SubKey.GetValue(v[i]);
s = System.Text.ASCIIEncoding.ASCII.GetString(b);
</code></pre>

<p>and then removed the newlines</p>

<pre><code>String t = s.replace("\n","")
</code></pre>

<p>but its not working ?</p>
