[ACCEPTED]-DirectoryInfo.getFiles beginning with-directoryinfo
Accepted answer
FileInfo[] taskFiles = taskDirectory.GetFiles("apples*.xml");
0
var taskFiles = taskDirectory.GetFiles("*.xml").Where(p => p.Name.StartsWith("apples"));
0
GetFiles list files based on Search Pattern 2 you applied.
Please refer to DirectoryInfo.GetFiles to know about 1 how to use Search Pattern.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.