Hi everyone,
I have a directory that have 100s of txt files. (Folder is Data_Sets_30)
I want to open txt files one by one and get values and close the file and open next txt file get values and close the file and continue like that.
I started to code but I don't know exactly how to do it.
#include <dirent.h>
struct dirent *entry;
DIR *dp;
dp = opendir("C:/Users/acer/Documents/Visual Studio 2010/Projects/DevC++30/DevC++/Data_Sets_30");
if (dp == NULL)
{
perror("Error Occurred");
return -1;
}
while((entry = readdir(dp)))
{
... I don't know that part
}