Issue
What's the equivalent of C's:
chmod(MY_FILE, 0777);
in Objective C? I am trying to write to an existing locked file without performing
chmod +x MY_FILE
on the terminal.
Solution
You can use C's chmod()
.
Enter man 2 chmod
in the terminal for the documentation and related functions.
Answered By - justin Answer Checked By - Marilyn (WPSolving Volunteer)