T
teds
Hi,
I have the following simple code:
string foo1 = "My\rLine\rIs\rHere\r";
string foo2 = @"My\rLine\rIs\rHere\r";
When I do a Console.WriteLine() on each variable, the foo2 is displayed
with the \r displayed but foo1 is garbled. Why is that?
Also, suppose I'm given a string with \r used as a token separator
in a string variable. I'd to display it to the screen but it's mangled
in the same way as my first example. How can I convert
it to display correctly?
Thanks,
Ted
I have the following simple code:
string foo1 = "My\rLine\rIs\rHere\r";
string foo2 = @"My\rLine\rIs\rHere\r";
When I do a Console.WriteLine() on each variable, the foo2 is displayed
with the \r displayed but foo1 is garbled. Why is that?
Also, suppose I'm given a string with \r used as a token separator
in a string variable. I'd to display it to the screen but it's mangled
in the same way as my first example. How can I convert
it to display correctly?
Thanks,
Ted