HomeC++

How to Delete a folder using C++

How to Delete a folder using C++
Like Tweet Pin it Share Share Email

In This Program We learn how to delete a folder using c++ it is Easy and Simple Lets Try it.

How to Delete a folder using C++

#include <errno.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
rmdir("D:/myfolder"); //myfolder is the name of the folder
return 0;
}

it is easy program

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *