This seems straightforward enough, but I was not able to determine how I could achieve this in C ++.
I create the file as
ofstream logfile(LOG_FILE, ios::out | ios::app);
The file is created with the following permissions.
-rw-r--r--
I really want
-rw-rw-rw-
For obvious reasons, I do not want to change the umask system for the same.
Thank!
source
share