Modern C++ idoms and recipes

meshell
32.4K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Filesystem library

An important addition to the C++17 standard is the filesystem library. The filesystem library is based on boost::filesystem and enables us to work with paths, files and directories.

The current compilers (gcc 7.2. is used for this exercise) provide an implementation of the library in the std::experimental::filesystem namespace and the actual header is <experimental/filesystem>.

Implement a program that searchs in the 'data' directory of the current directory for all files which contain 'copy' in its content and copy them to a new folder 'data_new'.
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content