creating directories

May 11, 2010 at 4:37pm
Hi,

I run my code on windows and mac as of now. Is it possible to create directories from within C++ under a specified path? If so I require that the directory be created, should it not exist already. If it already exists, then I would want all files in the directory deleted.

thank you!
May 11, 2010 at 7:37pm
Check out Boost Filesystem
http://www.boost.org/doc/libs/release/libs/filesystem

There are also OS-specific ways of doing this.
May 11, 2010 at 7:42pm
Thank you. seems exactly what I was looking for...
Topic archived. No new replies allowed.