Wednesday, 29 May 2013

how to delete a folder using c++


How to delete a folder in c++:-
This is the source code that how to delete a folder in a computer 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;
    }
End

7 comments: