I want to use the .replace() method in the string object to change the \ into a \\ so that instead of hard coding the file path below I can do it dynamically. However when I try the following in c# I get an error
String.Replace("\","\\") because the \ has to be escaped. But if I put \\ it wont find the \ in the string. Bit of a puzzle
File c:\temp\e.xml
XmlTextReader xtr = new XmlTextReader("C:\\temp\\e.xmll);
String.Replace("\","\\") because the \ has to be escaped. But if I put \\ it wont find the \ in the string. Bit of a puzzle
File c:\temp\e.xml
XmlTextReader xtr = new XmlTextReader("C:\\temp\\e.xmll);