Parth48
asked on
how to make directory in C++ ??
how to make directory and then create text file in C++ ?
http://pubs.opengroup.org/onlinepubs/009695399/functions/mkdir.html
>> then create text file in C++ ?
http://www.cplusplus.com/reference/iostream/ofstream/
http://www.cplusplus.com/reference/iostream/ofstream/
std::ofstream out("test_file.txt");
out << "test";
ASKER
can u please create one directory in C Drive using C++ program ?
please tell me via example ...
please tell me via example ...
Sure
if(0 == mkdir("c:\\temp", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH))
{
// worked
}
else
{
// failed
}
ASKER
i am Compile C++ program in Visual studio 2008 using win32 console application ..
now how can i create directory in C++ ?
because it give me error for mkdir function doesn't exist ..
what can i do ?
now how can i create directory in C++ ?
because it give me error for mkdir function doesn't exist ..
what can i do ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@evilrix : Thanks very much ...
You are most welcome. Post back here if you have any more concerns about this :)