Hey everyone, can I create a folder using c++, just the way we create a file?

Recommended Answers

Sure, but I get the feeling you didn't search first. Try this:[CODE]#include

include

using namespace std;

int main() {
_mkdir("C:\My Directory");
}[/CODE]

Jump to Post

All 2 Replies

Sure, but I get the feeling you didn't search first. Try this:

#include <iostream>
#include <direct.h>
using namespace std;

int main() {
  _mkdir("C:\\My Directory");
}

Thanks man ,it really is possible!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.