Last active
January 5, 2017 00:21
-
-
Save MareArts/0e2bf230974d3a741dfa13ee345b63d3 to your computer and use it in GitHub Desktop.
If file exist then delete the file, example source code in MFC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://study.marearts.com/2017/01/in-mfc-file-exist-check-and-delete-file.html | |
#include "afx.h" | |
CFileStatus fs; | |
if (CFile::GetStatus(_T("AutoLogIn.CPR"), fs)) | |
{ | |
::DeleteFile(_T("AutoLogIn.CPR") ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://study.marearts.com/2017/01/in-mfc-file-exist-check-and-delete-file.html