replace double backslash with single backslash c#

91

replace double backslash with single backslash c# -

string path = "C:\Hg\temp\\LogFile.txt";
string output = path.Replace(@"\\", @"\"); 

output >>>
C:\Hg\temp\LogFile.txt

Comments

Submit
0 Comments