Jump to content
  • Advertisement

Archived

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

newOperator

What is the call in C++ to determine files.

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

What is the call in C++ to determine all the files in a director? Including other directories? Could someone help on this please, I know its rather simple, but I don''t remember it and the book I have just talks about reading files, but not diretories. Thanks, L-

Share this post


Link to post
Share on other sites
Advertisement
There is no such thing in C++, it depends on your platform. On a POSIX system, try opendir(). On Win32, check your docs.

Or you could make your life infinitely simpler by using boost::filesystem.




“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”
— Brian W. Kernighan (C programming language co-inventor)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!