How do I join two file paths in C#?
See Question&Answers more detail:osYou have to use Path.Combine() as in the example below:
string basePath = @"c:emp";
string filePath = "test.txt";
string combinedPath = Path.Combine(basePath, filePath);
// produces c:empest.txt