Archived

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

Naku

Directory contents

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