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!

Read all files in Windows directory/folder

Status
Not open for further replies.

wapboy

Technical User
Oct 26, 2002
13
0
0
GB
Hi,

Can anyone tell me how to code something in C to list all files in a directory/folder (including sub-directories) so that I can then open those files and parse them etc.

thanks

Paul
 
on a posix compliant system you can use opendir (_opendir), readdir (_readdir), and closedir (_closedir)

On windows, you can do FindFirstFile / FindNextFile
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top