I have a helper class pulling a string from an XML file, that string is a file path (so it has backslashes in it). I need to use that string as it is... how can I use it like I would with the literal command?
instead of this:
string filePath = @"C:\somepath\file.txt";
I want to do this:
string filePath = @helper.getFilePath(); //getFilePath returns a string
This isn't how I am actually using it, just to show what I mean a little clearer. Is there some sort of .ToLiteral() or something?
Thank you.