string[] filesHD = Directory.GetFiles(dirPath, filepattern1);
string[] filesDT = Directory.GetFiles(dirPath, filepattern2);
string[] filesTD = Directory.GetFiles(dirPath, filepattern3);
My filesHD[]
array contains 2 files. filesDT[]
contains 2 files and filesTD[]
also contains 2 files.
I want to create a single string Array which will contain all the 6 files of filesHD
, filesDT
, filesTD
.
string[] Allfiles = new string [filesHD + filesDT + filesTD]