-
obtain a list of files in the current folder?
For example if you wanted to compile a list of all the files in a specified
directory, how might one do this?
thx,
joe
-
Re: obtain a list of files in the current folder?
"Joe Nicholas" <josephn@micron.netREMOVETHIS> wrote:
>
>For example if you wanted to compile a list of all the files in a specified
>directory, how might one do this?
>
>thx,
>joe
In the windows env., Something like the following...
WIN32_FIND_DATA fd;
HANDLE hFind = ::FindFirstFile(lpFileSpec, &fd);
if (INVALID_HANDLE_VALUE != hFind) {
do {
// TODO: Process the found entry.
} while (0 != ::FindNextFile(hFind, &fd));
::FindClose(hFind);
}
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|