Hi

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

Thanks in advance.:S

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.