Thread
:
reading file names
View Single Post
#
2
(
permalink
)
September 21st, 2004, 05:24 AM
nokomis
Authorized User
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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
nokomis
View Public Profile
Find all posts by nokomis