how to file handling

help please
1) how can i make C++ program to search for files that start with A and end in B, and to delect those files?

2) how to get the directories where a file is stored?

If your compiler supports C++17 you can use the filesystem library.
https://en.cppreference.com/w/cpp/filesystem
ok thanks Thomas1965 (N)
Topic archived. No new replies allowed.