I'm going to put a plug in for Boost here. The boost library has a really good command line parser called 'program options'. Makes doing this stuff really simple.
thanks for you, but unfort. "mkdir( OutDir.c_str() );" didn't work. I have recieved this error mesage: " error: too few arguments to function 'int mkdir(const char *, mode_t)' :-(
mkdir() has two arguments; the directory name and mode_t is the permissions to be set on that directory when it's created. I'm guessing that you're doing this on UNIX/Linux in which case do man -s2 mkdir
on the command line for an explanation of how to use it, or google will find man pages as well.
Yeah, I can't remember arguments to anything. When I program I always have a reference so that I can look things up. I just assumed that you had the mkdir() argument list correct. In either case, though, you will still need to use c_str(), since mkdir() doesn't take a std::string.