Skip to main content
gamedev.net
🔒 Locked

File listing

Started by Arlanthir 3 replies 750+ views
Original Post
Arlanthir
Arlanthir
Hello. I'm currently designing a project using Fmod and Allegro libraries (namely a simple mp3 player), using DevC++. I came to a point where I must scan a folder for mp3, subfolders, and scan the subfolders for mp3 and subfolders, etc. I have googled for 2 days, been in fmod and allegro forums and still can't find anything that even relates to it. Where can I find a tut, or source, that gives me an idea of how to do this? Are any more libs necessary? Thank you in advance!
Red_falcon
Red_falcon
check it out

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_CRT_System_Calls.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_directory_control.asp
-----"Master! Apprentice! Heartborne, 7th Seeker Warrior! Disciple! In me the Wishmaster..." Wishmaster - Nightwish
Arlanthir
Arlanthir
Seems like what I need. Will try on the next few days when I have the time (christmas and all...) and I'll post if it worked well with me =)

Thank you very much.
Daggett
Daggett
Or you can use boost::filesystem, which I quite like.
Arlanthir
Arlanthir
_find() seems to work well, but tell me about your choice, will you? =)

Thanks for the both of you, really helpful :D

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.