T
tshad
I am looking for a way to combine 2 string arrays.
I am trying to get a list of files from 2 directories and combine them:
string[] strFiles;
string[] strFiles2;
strFiles = Directory.GetFiles(Settings.ArchiveFilePath, "*.*");
strFiles2 = Directory.GetFiles(Settings.ExceptionFilePath,
"*.*");
One way I was looking at was to copy them into a string collection:
List<string> sarray = new List<string>();
How would I get the string arrays into the collection? Do I need to do 2
loops and move them in one at a time?
Thanks,
Tom
I am trying to get a list of files from 2 directories and combine them:
string[] strFiles;
string[] strFiles2;
strFiles = Directory.GetFiles(Settings.ArchiveFilePath, "*.*");
strFiles2 = Directory.GetFiles(Settings.ExceptionFilePath,
"*.*");
One way I was looking at was to copy them into a string collection:
List<string> sarray = new List<string>();
How would I get the string arrays into the collection? Do I need to do 2
loops and move them in one at a time?
Thanks,
Tom