Hello guys,
I am doing a small C/C++ program(mainly for use in my father's work - Includes a batch processing inside a folder which is repetitive).
I just need to find the number of files in a folder(not necessarily of a single filetype). What I thought was using system("dir > TmpFile")
, and checking in that file. The code for checking in this goes quite complex.
Can somebody suggest me a simple function(NOT MFC), to do count no. of files in a given folder.
- Appreciate your help,
Thanks