MattWoberts
Programmer
Hi,
I need to do a really simple replace on a string. I need to replace all carriage-returns (ascii code 13) with "/n".
In VB, I would do this:
s = Replace(s,chr(13),"/n"
But I have no idea how to do this in c#! I am aware of the string.Replace method, but how I search for chr(13)!?!?!
Any help greatly appreciated!
I need to do a really simple replace on a string. I need to replace all carriage-returns (ascii code 13) with "/n".
In VB, I would do this:
s = Replace(s,chr(13),"/n"
But I have no idea how to do this in c#! I am aware of the string.Replace method, but how I search for chr(13)!?!?!
Any help greatly appreciated!