I want to delete a file from my program. Trying to use this function, but still not working;
#include<stdio.h> DeleteFile(L"c:\c.png");
What is the right way?
Escape \ ;
\
DeleteFile(L"c:\\c.png");
DeleteFile works.
DeleteFile
Try
DeleteFile("c:\\\c.png"); // 2 slashes.
I decided! I forgot the double backslash :)
DeleteFile(L"c:\\c");