Archived from groups: microsoft.public.windowsxp.basics (More info?)
File permissions
I want to know how to make a file "append only" ( and read, but that is no
problem)
The "append data" setting seems useless, or at least I cannnot get it to work.
If I have "write data" allowed, I can open a file for write, read/write,
append, or append/read and write successfully.
(I am doing this in C with fopen("filename", "w" ) and "w+", "a", "a+"
parameters )
If I have "write data" denied, I cannot open the file in any of these modes.
The windows API for CREATEFILE mirrors the information as shown in msdn for
the various permissions.
I am left wondering just what the append setting does ...
I want to set a log file so that the users can append to it but not alter
the contents that already exist (i.e. append only) but do not see a way to
make it work.
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.