How i would like to change my absolute Path to relative Path. anyone can help? this is my Code
string activeDirectory = @"X:\Temp\";
string[] files = Directory.GetFiles(activeDirectory);
foreach (string fileName in files)
{
.....
}
How i would like to change my absolute Path to relative Path. anyone can help? this is my Code
string activeDirectory = @"X:\Temp\";
string[] files = Directory.GetFiles(activeDirectory);
foreach (string fileName in files)
{
.....
}
I would prefer files.Select(f => f.Substring(activeDirectory.Length))
.
That means 'Skip x chars and return the rest'.