Mostly I have binary data, I do not mind if it is unreadable, but I write it to a file that is being analyzed, and therefore important newline characters are output.
I thought I did the right thing when I jumped to a string ....
byte[] b = (byte[])SubKey.GetValue(v[i]);
s = System.Text.ASCIIEncoding.ASCII.GetString(b);
and then delete the lines of the new line
String t = s.replace("\n","")
but doesn’t work?
source
share