P
peelman
For some reason this is not working for me. How to remove all newline
characters from a string? I have tried:
myString.Replace ("\n", "");
I have also tried using TrimStart and TrimEnd methods from String
(using a char array with a '\n' in it), but to no avail.
Has it to do with the '\r' somewhere in there, or is there just an
easier way to this? I know this should not be hard.
Thanks in advance,
NC
characters from a string? I have tried:
myString.Replace ("\n", "");
I have also tried using TrimStart and TrimEnd methods from String
(using a char array with a '\n' in it), but to no avail.
Has it to do with the '\r' somewhere in there, or is there just an
easier way to this? I know this should not be hard.
Thanks in advance,
NC