|
-
May 19th, 1999, 01:56 AM
#1
Getting sorted list of files
How can I retrieve a sorted list of files in a specific directory? I have to sort this list in different ways. I don't want to display a dialog box (like CFileDialog).
This issue is especially for a large amount of files in this directory
Who knows how to do this?
Thanks in advance
-
May 19th, 1999, 03:14 AM
#2
Re: Getting sorted list of files
::FindFirstFile() and ::FindNextFile() can retrieve a list of files in long filename format, including a specific set if desired ("*.TXT", "AP_*.DEF", etc) - but sorting is up to you. I'm sure there are plenty of algorithms for sorting text.
-
May 19th, 1999, 04:13 AM
#3
Re: Getting sorted list of files
You can use qsort function for sorting.
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
|