I have two strings:
C:\folder1\folder2\folder3
folder3\folder4\file1.jpg
I want to combine the two strings to give a full file path, but when using:
char[] charsToTrim = {'\\'};
var rootPathEdit = treeViewPath.TrimStart(charsToTrim);
it doesn't work, can you give me any tips?
EDIT:
Sorry I realised it wasn't very clear, I want the result of combining:
C:\folder1\folder2\folder3
folder3\folder4\file1.jpg
to be: C:\folder1\folder2\folder3\folder4\file1.jpg
because the two half of the file path I have overlap at the end and start.