p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VS.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=103)
-   -   DirectoryInfo.GetFiles(pattern): search pattern fo (http://p2p.wrox.com/showthread.php?t=19635)

arif_1947 October 9th, 2004 10:19 AM

DirectoryInfo.GetFiles(pattern): search pattern fo
 
hi,

i m trying with search pattern "*.txt | *.doc" for DirectoryInfo.GetFiles(string pattern).
but this doesn't work. what is the syntax for multiple files search pattern?

please help.

Arif.



dotnetprogrammer October 19th, 2004 11:59 PM

hi
u need to use filter seperately something like this

string s1[] = di.getfiles("*.txt");
string s2[] = di.getfiles("*.xls");

thanks

dotnet


All times are GMT -4. The time now is 01:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.