Archived

This topic is now archived and is closed to further replies.

Julio

opening all files in a given directory

Recommended Posts

  

int CFilhantering::GetNumberOfFilesInMap(char *path)
{
int nr=0;

WIN32_FIND_DATA fd;
HANDLE findHandle = FindFirstFile(path, &fd );
if ( findHandle != INVALID_HANDLE_VALUE )
{
do
{
nr++;
} while ( FindNextFile( findHandle, &fd ) );
FindClose( findHandle );
}

return nr;
}





Zeblar Nagrim, Lord of Chaos

Share this post


Link to post
Share on other sites