I am writing a c++ program for linux and BSD, and need to get a list of all the files and directories in a certain directory. How would I go about doing this without dumping 'ls' output to a file and ...