Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- #include <filesystem>
- namespace fs = std::filesystem;
- int main()
- {
- fs::create_directories("sandbox/a/b");
- std::ofstream("sandbox/file1.txt");
- std::ofstream("sandbox/file2.txt");
- for(auto& p: fs::directory_iterator("sandbox"))
- std::cout << p.path() << '\n';
- fs::remove_all("sandbox");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement