|
-
Dec 31st, 2005, 12:57 AM
#1
Thread Starter
PowerPoster
efficiency
Hi
I am trying to look for a more effecient, better way of doing this.
Let's say we have a directory, in this directory there are various directories.
Now, most of the directories will be a numeric/integer named directory ie:
1
2
3
65
etc...
however this directory may also contain non integer/numeric names (such as "test" or "h3ll0" etc...)
What I want to do is to obtain a list of ONLY the integer directory name.
Of course, I could use a for each on each directory name and check to see if the current Char in the current directory name is a digit/numeric or not but that i do not think is the most efficient way as there maybe several hundred directories therefore it will have some performance degration if using a Char.IsDigit/IsNumeric method.
What is the best way?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|