[I have posted this question before, but that was ages ago...so here it is....]
How do you remove the contents of a folder instead of the actual folder itself (I am using Dev C++ and I would like to know how to do it in a console application - not windows. Also, could you please state the header file (eg. <fstream.h> if you answer).
I know of one way: remove("C:\\folderName"); but this only deletes the actual folder, not the contents...
Thanks
-Chris