Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i create unix dir. from C++?

Status
Not open for further replies.

ravindra5

Programmer
Aug 7, 2001
2
0
0
US
Hi .. I am newly started working in C++. Can some tell me how to create directory from unix.
Thanks
 
You can do it by using the 'mkdir dir_name' command from the shell prompt or by using the mkdir(char *path, mode_t mode) from your C++/C programs which is declared in unistd.h.

path : directory path, mode : permission for the new directory.

put a man mkdir for mkdir command and man 1 mkdir for mkdir()

Maniraja S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top