Chat on IRC |
Create a Directory in C++
Posted by Faisal [send private reply] at June 01, 2002, 02:22:26 PM
How do I create a Directory in C++? I went to MSDN and they showed something like Directory::CreateDirectory("c:\\somefolder"); but I couldn't find the header..
Posted by unknown_lamer [send private reply] at June 01, 2002, 05:26:09 PM
#include <sys/stat.h>
#include <sys/types.h> int mkdir (const char *location, mode_t mode); ...oh wait
Posted by Faisal [send private reply] at June 01, 2002, 06:49:07 PM
It's okay, I already found a solution.
#include <direct.h> _mkdir("c:\\watever"); Thanks anyway
Posted by unknown_lamer [send private reply] at June 01, 2002, 09:59:12 PM
What is this with Windows and _s..._asm, _mkdir...
Posted by Faisal [send private reply] at June 02, 2002, 08:30:59 PM
It's only in vc++6 though.. stupid progs can't stick to one thing
Posted by unknown_lamer [send private reply] at June 02, 2002, 08:55:04 PM
I wish everything would just switch to the POSIX (or Single UNIX, which is even better). That would make writing cross-platform programs easier for everyone (write for Single UNIX/POSIX and have it run on everything from AIX to XENIX!)
Register as a new user | ||||||||