ahhh,
Didn't realise it was possible to have 2 handles open for the same file. Or even that the create process leaves it in an open state.
Will look into how to print the handle (as output is all...
Type: Posts; User: gidion
ahhh,
Didn't realise it was possible to have 2 handles open for the same file. Or even that the create process leaves it in an open state.
Will look into how to print the handle (as output is all...
are we getting off topic here :-P
Any ideas whether my 2 possible reasons for this error are correct and/or how to resolve?
From my limited experience it seems to me that one of the following is happening:
1) the code used to open the file (switch case 4) is changing the permissions in some way as to restrict deletion....
Sorry,
Just to clarify, the delete procedure performs a close on the handle before attempting the delete.
This close succeeds but the subsequent delete fails.
When running this on my system...
I have tried to give the FILE_SHARE_WRITE | READ | DELETE permissions but that seems to error.
If you run the above code it allows you to create file, when you then open file you get a success...
Hi,
I am in the early stages of learning C (previously coded in java, PHP etc.).
The code below is a simple menu which enables you to:
create, delete, open and close a file.
The problem i...