The following code generates a compiler error about an "unrecognized escape sequence" for each backslash:
string foo = "D:\Projects\Some\Kind\Of\Pathproblem\wuhoo.xml";
I guess I need to escape backslash? How do I do that?
You can either use a double backslash each time
string foo = "D:\\Projects\\Some\\Kind\\Of\\Pathproblem\\wuhoo.xml";
or use the @ symbol
string foo = @"D:\Projects\Some\Kind\Of\Pathproblem\wuhoo.xml";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With