Mail Archives: djgpp-workers/1998/03/23/04:03:46
Eli Zaretskii wrote:
>
> On Thu, 19 Mar 1998, Vik Heyndrickx wrote:
>
> > writing
> > open it for writing and specify DENYALL
> > r/w
> > open it for r/w and specify DENYALL
>
> Doesn't this prevent other programs from opening the file in read-only
> mode?
During the weekend, I reconsidered this already and my new opinion is:
writing
open it for writing and specify DENYWRITE
r/w
open it for r/w and specify DENYWRITE
Like you mentioned, the previous restrictions were too strickt, as a
second prg CAN control not to open a file for reading when it is already
written to. Specifying DENYNONE on the other hand, will put data too
much at stake.
But: when a file is written to, it is better not to be able to open it
for reading, as this also can compromise data.
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -