Count Files in a Folder

Santhoshv84's Avatar, Join Date: Dec 2007
Newbie Member
Hi Friends,

I need to count number of files in a folder, i have the path from that i have to count all the files in that particular folder.

Could any one tell me how to do that by C++ program.

Thanks and Regards.
V. Santhosh
0
Salem's Avatar, Join Date: Nov 2007
Ambitious contributor
Well to begin with, it would depend on your OS/Compiler.

But let's have a guess at the win32 API and go with
http://msdn2.microsoft.com/en-us/library/aa364407.aspx