#include<bits/stdc++.h>
#include<sys/types.h>
#include<dirent.h>
using namespace std;
int main()
{
DIR *dr;
struct dirent *e;
dr= opendir("E:\\");
if(dr){
while((e = readdir(dr))!=NULL){
cout<<"\n"<<e->d_name;
}
closedir(dr);
}
return 0;
}
Comments
Post a Comment