How do i delete a folder with all its files in it and all those subdirectories and so on
This is a discussion on Deleting folders with everything in the directoy within the C++ Programming forums, part of the General Programming Boards category; How do i delete a folder with all its files in it and all those subdirectories and so on...
How do i delete a folder with all its files in it and all those subdirectories and so on
Think recursively.....
You can use remove(const char* filename) from <cstdio> or <stdio.h>
on windows systems you can use DeleteFile(LPCTSTR pFilename)
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi