in reply to Re: Creating file with 777 permission
in thread Creating file with 777 permission

That's still going to be affected by umask, and is unlikely to reliably give 777 as the permission mode of the file.

You're probably best off creating the file first with your specific requirements, then opening it.

---
my name's not Keith, and I'm not reasonable.
  • Comment on Re^2: Creating file with 777 permission

Replies are listed 'Best First'.
Re^3: Creating file with 777 permission
by Smaug (Pilgrim) on Nov 21, 2006 at 09:35 UTC
    Agreed, but you're also unlikely to want a file that is open for writing to be executed.