[SDL] Hello everyone.
James Lehman
james at akrobiz.com
Sat Apr 12 00:35:48 PDT 2008
Hello.
I just joined this list and already I have a question!
Imagine that.
I hope this is an easy one...
How do I get a list of the contents of sub-directories that would be found in the same directory as the application's executable?
I've been working on these project for many years:
http://akrobiz.com/ezfb
http://akrobiz.com/laserboy
What I'd really like to do is disconnect LaserBoy from ezfb and use SDL instead. I want to be able to run LaserBoy on just about any computer. Currently, the text / graphical user interface for LaserBoy allows the user to choose to open a variety of files as input. These files are sorted into sub-directories. Once the user chooses a type of file, then LaserBoy shows a list of files of that type that are present on the hard drive. I achieve this in Linux by using a popen() to a shell and I read back what I get from issuing "ls -1 ./directory/*.type". How do I do something like this that will work in every OS?
Thanks in advance.
Have a great day! James. :o)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080412/87367670/attachment.htm
More information about the SDL
mailing list