0
I am making a program to read all files from a folder, and clear the name of them ( take any accent ).
I wonder if there is a standard library to work with directories(Read). I am using Windows 10, Visual Code with Mingw.
The only example that partially met me is:
#include <iostream>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
int main (void)
{
DIR *dp;
struct dirent *ep;
dp = opendir ("./");
if (dp != NULL)
{
while (ep = readdir (dp))
puts (ep->d_name);
(void) closedir (dp);
}
else{
perror ("Couldn't open the directory");
}
system("pause");
return 0;
}