Archived

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

Reading directory.

This topic is 5576 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

I wish people would at least TRY a forum search before they ask this question, I don''t even come here very often anymore and I still see this question close to the top of the forum every time I visit. This is getting close to earning a spot in the FAQ .

Share this post


Link to post
Share on other sites
quote:
Original post by Cherez
Is there any way in the Standard C++ library or someo ther portable library that lets you get a list of the files in a directory?

My CPT lets you get a list of files in a directory in POSIX and Win32 environments. Feel free to just pull the code out of it (src/win32/system.c and src/unix/system.c), the license allows it. Look up/for the function ''CPT_SystemEnumFiles''.

Share this post


Link to post
Share on other sites