Symbolic names basic doubt

Hello, I'm learning how to use c++ because I have to work with a code written with it and there's a part of the main.cpp I don't understand. I've looked for it on the web and I've seen it's related to symbolic names but I don't understand them...
It says:

/*produce the file stream output*/
string foldername("results");
mkdir(foldername.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
string directory((foldername+"/"+caseName));
mkdir(directory.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);

ofstream fElectrode(directory+"/field-electrode.csv");
ofstream fElectrolyte(directory+"/field-electrolyte.csv");
ofstream fPolarization(directory+"/polarization.csv");


Thanks for your help. I appreciate it

Ramon
man 2 open wrote:
The following symbolic constants are provided for mode:
S_IRWXU 00700 user (file owner) has read, write and execute permission
S_IRUSR 00400 user has read permission
S_IWUSR 00200 user has write permission
S_IXUSR 00100 user has execute permission
S_IRWXG 00070 group has read, write and execute permission
S_IRGRP 00040 group has read permission
S_IWGRP 00020 group has write permission
S_IXGRP 00010 group has execute permission
S_IRWXO 00007 others have read, write and execute permission
S_IROTH 00004 others have read permission
S_IWOTH 00002 others have write permission
S_IXOTH 00001 others have execute permission
So I don't have to pay much attention to this in order to understand how does the whole code work, right?

Thanks for your useful note..!
Topic archived. No new replies allowed.