Win32API ファイルを削除する DeleteFile
#include <windows.h> int main() { char *lpFileName = "test.txt"; if (DeleteFile(lpFileName)) { printf("Success\n"); } else { printf("Error\n"); } return 0; }
#include <windows.h> int main() { char *lpFileName = "test.txt"; if (DeleteFile(lpFileName)) { printf("Success\n"); } else { printf("Error\n"); } return 0; }