How to create new folder? [duplicate]
问题 This question already has answers here : How can I safely create a nested directory? (25 answers) Closed 5 years ago . I want to put output information of my program to a folder. if given folder does not exist, then the program should create a new folder with folder name as given in the program. Is this possible? If yes, please let me know how. Suppose I have given folder path like "C:\Program Files\alex" and alex folder doesn't exist then program should create alex folder and should put