Hi all,
I have an issue need your kind help.
I define one array as below type:
After that, I get all files from one folder to this array using: Directory.GetFiles(FilePath, “.”,SearchOption.AllDirectories)
Now I want to use for each to loop the array and then move some items to another array if the condition met:
but it does not work, please suggest where is the problem?
Hi,
thanks a lot for your solution.
I saw you move the file to one folder, but i need to append it to another array in the loop, and finally i will send it out by email with the file array .
By the way, could you please let me know how to clear the list and how to check if it is empty?
assign nothing to list can clear it?
using if the list is nothing can know if it is empty, right ?