creating directories

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!
Check out Boost Filesystem
http://www.boost.org/doc/libs/release/libs/filesystem

There are also OS-specific ways of doing this.
Thank you. seems exactly what I was looking for...
Topic archived. No new replies allowed.