View Single Post
  #2 (permalink)  
Old September 21st, 2004, 05:24 AM
nokomis nokomis is offline
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Findfirst will do this for you:

#include <dir.h>

struct ffblk ffblk;
int done;

done = findfirst("C:\\TEMP\\*.*", &ffblk, 0);

while (!done)
{
   printf("%s\n", ffblk.ff_name);
   done = findnext(&ffblk);
}





Georges
Reply With Quote