How to convert
"String path = @"C:\Abc\Omg\Why\Me\\\\\\\\\\\\\\\\\\\\\";
at
String path = @"C:\Abc\Omg\Why\Me\".
My approach is to first reverse stringand then delete everything "\" until we get the first one char , and reverseit again.
How to do this in C #, is there any method for such an operation?
source
share