I need to archive 50 text files into a single target file in C++.
To achieve this first I need to read all those file contents from a directory and finally write them sequnetially into a new file.
Please help me with a sample code or steps.

Your help will be greatly appriciated.