Re: File access questions

Kyle Sluder <[email protected]> Tue, 15 Nov 2011 23:29:38 -0800
Newsgroups gmane.comp.macosx.devel
Message-ID <CANEs-czVyaBuDbejEhzY7QAs_6-xf92Ty=kBgiGodAn5FirO9g@mail.gmail.com>
On Tue, Nov 15, 2011 at 6:02 PM, Nathan Sims
<[email protected]> wrote:
> Q: Does a file opened for write-only "w" access preclude others from reading it?

Nope. You want to look into file locks (flock), and realize they are
only advisory. There is no such thing as exclusive file access on
UNIX.

--Kyle Sluder