hello i am trying to make a program for specify extension finder but i have some issue how can i search inside files inside file like i have a A folder in this folder have B,C,D,E,F folders, B folder has a txt folder how can i see that ?
//heres my code
#include <iostream>
#include <dirent.h>
#include <sys/types.h>
using namespace std;
int main(void) {
DIR *dir;
struct dirent *en;
dir = opendir("C:\\Users\\BATU\\Desktop\\bestas\\deneme\\A"); //open all directory
if (dir) {
while ((en = readdir(dir)) != NULL) {
cout<<" \n"<<en->d_name; //print all directory name
}
closedir(dir); //close all directory
}
return(0);
}
This isn't your first go-around with <filesystem> and the need to explicitly set your Visual Studio 2022's use of the C++ language standard to at least C++17. Preferably C++20 since that is at this time the current standard.