***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***


On Friday 03 November 2006 04:56 pm, you wrote:
>
> I've been using C++ for convenience (I'm more familiar with that language
> than others), but I've run into a snag.  C++ does not seem to have a simple
> means of evaluating all files in a directory if it is given a directory
> path.
>

The way to solve this is using the C <dirent.h> functions.

For example:

http://www.devx.com/cplus/10MinuteSolution/26748

Quick googling (or referencing The C Programming Language by
Kernighan and Ritchie which has a very nice section on how
to navigate files and directories this way) should pull up lots of
information.  If you're using the STL, it should be pretty easy to
use these to build vectors of filenames and the like.

Chris.
 

Reply via email to