Jump to content
  • Advertisement

Archived

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

Cherez

Reading directory.

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

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?

Share this post


Link to post
Share on other sites
Advertisement
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 Oluseyi
The search tool is down. Indefinitely.

Indefinitely as in forever or an unknown period of time...?

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!