I am trying to delete and rename a file
I get the error
Permission Denied
what's the problem?
The code looks fine.
if( remove( "issuer_book_log.txt" ) != 0 )
perror( "Error deleting file" );
elseputs( "File successfully deleted" );
I am trying to delete and rename a file
I get the error
Permission Denied
what's the problem?
The code looks fine.
if( remove( "issuer_book_log.txt" ) != 0 )
perror( "Error deleting file" );
elseputs( "File successfully deleted" );
Your application either doesn't have permission to delete the file, or the file is open. Make sure that the file is not open. If that doesn't work, try running the application as an administrator or super user.
"If you tell the truth, you don't have to remember anything"
-Mark Twain
Thank you! I will follow this
What is errno set to after the remove() call fails?