Hi everyone,
This sounds so simple but I have not been able to find the answer so let me ask you guys.
I am simply opening a file to log and when it reaches certain amount, I am renaming that file and create the same name file for logging again.
Now I’ve read that I need DELETE access right in order to rename the file. So once I provided DELETE access, I cannot open the file while the file is being used by my logging process.
Simply, I would like to open the file and see the content while it being written by other process.
In order to accomplish this, I provided FILE_SHARE_DELETE|FILE_SHARE_READ|FILE_SHARE_WRITE but this still does not do any good.
FYI, my desired access is FILE_APPEND_DATA|DELETE because I only append information at the end.
I also changed to various rights but it still does not do anything. In fact, if I give FILE_WRITE_DATA, I cannot even terminate the process.
So something must be wrong but I could not quite figure out what is wrong so I thought it best to ask some of experts here in this forum.
Sorry for too simple question but I will really appreciate it if anybody could give me some insight.
Thanks.
Ilho <><