954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading files in a directory

Hi

I want to list all files and directories under a given directory in C.

Thanks in advance.:S

sundarN
Newbie Poster
2 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

depends on the operating system. MS-Windows: use win32 api functions FindFirstFile() and FindNextFile()

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You