i want to print the file names in a particular directory

Recommended Answers

All 2 Replies

depends on the operating system. *nix use opendir() and readdir(). MS-Windows use FindFirstFile() and FindNextFile(). Don't know about other operating systems. google for those function names and you will find lots of information.

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.