Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading content of a folder (win XP) 1

Status
Not open for further replies.

blablabla2

Programmer
Sep 27, 2004
12
0
0
BE
Hello, I want my program to be able to read the content of a folder on my hard disk.
My computer is running under windows XP.

So, if I give my program for example "c:\temp", I want a list (or something else) with all the submaps and files in "c:\temp".

Can anybody help me here?
tnx
 
You can use a combination of FindFirstFileEx() and FindNextFile() to walk the folder.
 
Tnx a lot. That's exactly what I need...
Just one more question... what include do I need for this funtion?
 
windows.h the standard windows include header although I believe its actually declared in winbase.h
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top