A string like this:
"C:\\mydir\\myf ile.txt"
Can be passed like this instead:
@"C:\mydir\myfi le.txt"
As for tabs, line breaks and such, you will need to use their escape keys in
C#.
If you want to see the text without escape keys, you can pass the values to
a message box to debug and you will see the text as you may want to see it.
You can also create a text file log and post the string to it. Then you can
read it as you would normally see text. This is the best approach.
Rob
"Tiësto" wrote:
Sometimes I have a string variable with many escaped characters. And when I
write
?MyString
in the Immediate window, the output is done with the \n \t and similar
characteres.
Is there any simple way to write the string as normal text?
Thank you.