i ve two directories and i ve to write a c++ code for getting files names of both the directories printed side by side .(Assume equal no.of files in both directories)

Recommended Answers

All 2 Replies

First learn how to list all the files on one directory, then the rest should not be all that difficult. How to get the list of the files will depend on the operating system( *nix, MS-Windows, MAC, etc. etc). Most of them do it differently then the others.

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.