I want to write a program, which searches all the text files in a given directory & stores their paths and names in a array.
PHP Code:
#include<iostream>
#include<io.h>
using namespace std;
int main()
{
struct _finddata_t fileinfo;
const char *filespec;
int done;
cout<<_findfirst("*.TXT", &fileinfo );
return 0;
}