creating directories from c program
I am reading in data from files in a large set of directories, the data is stored in a structure. The data must be sorted based on various parameters in the data--which are not known to the user before hand--so that the information can be passed on to another program and a log file can be created. I need the program to create data/output storage directories based on the data sort parameters in which the output from the follow-on program and the log file will be stored. The directories cannot be created by hand, because the program needs to put the path to the directory into the file read by the follow-on program--and the process needs to be "invisible" to the user who likely will know nothing about the original data, where the output directories should be, etc.
Bottom line: how do I create a directory using a c-program?
|