cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Creating Folder C++
Creating Folder C++
Oct 3, 2010 at 6:30am UTC
LittleQuick
(84)
How do you create a folder with a name that is entered into the prompt?
For ex: What is your name? - cin name; - mkdir("c:/" + name); or something like that?
Greatly appreciated for any help.
Oct 3, 2010 at 6:43am UTC
hamsterman
(4538)
I suppose
http://msdn.microsoft.com/en-us/library/aa363855%28VS.85%29.aspx
You could also do system("mkdir "+path), but see
http://www.cplusplus.com/forum/articles/11153/
There are also cross platform alternatives like boost filesystem library.
Oct 3, 2010 at 6:57am UTC
Galik
(2254)
Boost works:
http://www.boost.org/doc/libs/1_44_0/libs/filesystem/v2/doc/index.htm
Topic archived. No new replies allowed.