How Can I Remove The 'file:\\' From the Return Value of Path.GetDirectoryName() in C#
string path = Path.GetDirectoryName( Assembly.GetAssembly(typeof(MyClass)).CodeBase); output: file:\d:\learning\cs\test\test.xml What's the best way to return only d:\learning\cs\test\test.xml file:\\ will throw exception when I call doc.Save(returnPath) ,however doc.Load(returnPath); works well. Thank you. ...