A
Anthony
Hi,
Removing files seems to be rather clumsy in C (not C++).
I am trying next piece of code to delete a file (under W32);
int errno;
errno = remove("FSelCancelled");
After exiting the app the file is still on the system, so not deleted at all.
If I check the return code, I see value for errno = -1.
On the several doc. pags for remove I see return codes 7 (EBIG), 13 (EACCESS) , etc, etc. till 18 (EXDEV), but not an error code -1.
So, what's wrong ?
Thanks.
Anthony
Removing files seems to be rather clumsy in C (not C++).
I am trying next piece of code to delete a file (under W32);
int errno;
errno = remove("FSelCancelled");
After exiting the app the file is still on the system, so not deleted at all.
If I check the return code, I see value for errno = -1.
On the several doc. pags for remove I see return codes 7 (EBIG), 13 (EACCESS) , etc, etc. till 18 (EXDEV), but not an error code -1.
So, what's wrong ?
Thanks.
Anthony