Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,731 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,309 people online right now. Registration is fast and FREE... Join Now!




New folder generation

 
Reply to this topicStart new topic

New folder generation

Antiokus
22 Feb, 2007 - 07:57 PM
Post #1

D.I.C Head
**

Joined: 6 Sep, 2006
Posts: 128



Thanked: 1 times
My Contributions
Can someone set me on the right path for creating new folders in C++. I have no problem navigating files and folders but if the directory isn't there it won't create it. Any way of making that happen?
User is offlineProfile CardPM
+Quote Post

horace
RE: New Folder Generation
22 Feb, 2007 - 11:30 PM
Post #2

D.I.C Addict
Group Icon

Joined: 25 Oct, 2006
Posts: 573



Thanked: 5 times
Dream Kudos: 50
My Contributions
QUOTE(Antiokus @ 23 Feb, 2007 - 03:57 AM) *

Can someone set me on the right path for creating new folders in C++. I have no problem navigating files and folders but if the directory isn't there it won't create it. Any way of making that happen?

many compilers have <dir.h> try
CODE

#include <dir.h>

int main()
{
mkdir("c:\\directory");
return 0;
}

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/8/09 05:12AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month