Hi :).
I use this code to create a file:
#include <cstdlib>
#include <fstream>
using namespace std;
int main () {
ofstream file("main/articles/giraffe/article.txt", ios::out);
file.close ();
return 0;
}
How can I simplify create path of folders (on unix system) "main/articles/giraffe/" - if folder "main" doesn't exist?
With using standard system libraries only.
Thanks :).