Archived

This topic is now archived and is closed to further replies.

Directory contents

This topic is 5583 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can I find the contents of a directory and create a list of all the files in it? Sorry if this seems vague but I want to open files without knowing the filename or promting the user to input one. I hope that makes sense.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
For what environment should the code be written for? POSIX systems use opendir/readdir/closedir. Windows uses FindFirstFile/FindNextFile/FindClose. Look them up.

Share this post


Link to post
Share on other sites