i have to do the following tasks:
1.my program generates several output files.these files i need to store in a directory which also need to be created by the code itself.will the following command generate a new directory if it doesn't exist?
dirp = opendir("/var/tmp/store")
here 'store' is the new directory which is to be created. if this won't work what may be the reason ? & is there any solution to this problem other than manually generating the directory with the command mkdir in the command prompt.
2.the output files generated should be stored in the new directory.along with this i have to create links to each & every file that is created & store that links in one existing directory.
3.one more option is to remove the new directory generated above.is there any command to remove an existing directory.when this is to be done the links to all files also need to be removed.can the
unlink(filename) command can be used to remove the links ?