Reputation: 6797
I want to delete file from my program. Trying to use this function but still fail;
#include<stdio.h>
DeleteFile(L"c:\c.png");
What is the correct way?
Upvotes: 7
Views: 18740
Reputation: 6797
solved it! I forgot the double backward slashes :)
DeleteFile(L"c:\\c");
Upvotes: 0