I have an array of strings on lenght n.
I would like to only print out the values after a certain element, regardless of the amount of elements before or after.
Is there anyway to do this?
EDIT CODE
string separator = "\\";
string[] splitPath = path.Split('\\');
string joinedPath = String.Join(separator, splitPath[3], splitPath[4], splitPath[5]);
Console.WriteLine("Extracted: " + path);
I have it being rejoined at 3 because I know the array, but I want it so that it willdo it no matter the location
And nope its not homework ;) I've a console app thats printing out a big long path, i only want it to show part of that path, not just the file. I was thinking of deleting/removing the elements up to x and then joining them back up.