Creating new folders if they don't exist for fopen

Posted by Gbps on Stack Overflow See other posts from Stack Overflow or by Gbps
Published on 2010-05-14T14:09:34Z Indexed on 2010/05/14 15:04 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

I have a C++ program that takes user input for fopen in order to initiate a file write. Could someone help me find a function which will return a FILE* and use the Windows specific version of mkdir in order to create the folder structure for fopen to never fail to open a new file in the specified location because one of the folders does not exist. Thanks a bunch!

© Stack Overflow or respective owner

Related posts about fopen

Related posts about c++