Re: How to tell if a file is busy?
Re: How to tell if a file is busy?
- Subject: Re: How to tell if a file is busy?
- From: Doug McNutt <email@hidden>
- Date: Thu, 27 Sep 2001 19:10:03 -0600
At 17:44 -0700 9/27/01, Chris Page wrote:
A file can be opened for read access multiple times, from within the same or
different processes at the same time. Only one process can open a given file
with write access
That is simply NOT TRUE. I complained to Apple about it and was
specifically informed of the fact. In fact I think it was Mr. Nebel
who said so. What really surprised me is that even in UNIX it's not
true. There is a busy bit but it only applies to cooperating
applications (processes).
AppleScript or MacPerl will open a file for output even if it is
already open for writing by another application. I know it doesn't
make sense, but that has nothing to do with the facts.
--
-> The U. S. Patent Office issues protection for methods used in
stem cell research. Is that an immoral use of taxpayer's money? <-