[SDL] Hello everyone.
Gabriel Gambetta
mystml at adinet.com.uy
Sat Apr 12 12:04:17 PDT 2008
>
> 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?
>
With all due respect, your solution is absolutely horrible and it's probably
illegal under various international war crime laws. If it isn't, it should.
Do this instead :
http://www.siit.tu.ac.th/mdailey/class/2003_s2/its225/assignments/readdir.c
--Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080412/12da9a95/attachment.htm
More information about the SDL
mailing list