I want to create a file. Is there any function which can create the file including the complete nested directories (the directories may not exist)? Or I need to create the nested directories first?
Thanks in advance.
I want to create a file. Is there any function which can create the file including the complete nested directories (the directories may not exist)? Or I need to create the nested directories first?
Thanks in advance.
There are no standard C++ library functions to work with directories. I can think of the following third party libraries to help you with that:
If you have access to the POSIX libraries, if you are working in Linux you do, you can use the directory manipulation function from it: