How can i make a folder with a name which i write in cin >> filename; ?????
Making a folder
Collapse
X
-
Originally posted by KasyaHow can i make a folder with a name which i write in cin >> filename; ?????
Hi,
You will have to use system( ); command to create a folder on a harddisk. This system( ); function will work on VC++ console application. The argument passed should be like this - system("MKDIR C:\\Folder_name ");
where; MKDIR is a console appl command. The above command will create the folder in C drive.
The path & the folder name can be got from the user through cin command.
Comment