Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<experimental/filesystem>
- #include<filesystem>
- #include<fstream>
- #include<string>
- using namespace std;
- using namespace experimental::filesystem;
- int main()
- {
- hash<string>b;
- string s;
- unsigned long long z = 0;
- ofstream f("C:\\1\\List.txt");
- ifstream f1;
- for (auto i : directory_iterator("C:\\Test"))
- {
- path a = i;
- f1.open(i);
- while (!f1.eof())
- {
- getline(f1, s);
- z += b(s);
- }
- f << z << " " << a.stem() << " " << file_size(a) << " " << a << endl;
- f1.close();
- }
- f.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement