Monday 12 October 2015

How to access all Hidden Files and Folder Through C++?

  • Open Turbo C / Codeblock or any other platform that You are Using.



#include<iostream.h>
#include<dos.h>
#include<conio.h>
#include<dir.h>
#include<dirent.h>
int main()
{
DIR *d;
dirent *dir;
clrscr();
d = opendir("C:\\turboc3");  // Assigning Path to DIR variable
while(1)
{
dir = readdir(d); // Assigning to dirent Variable
if(dir==0)
break;
cout << dir->d_name << endl;
}
getch();
}





No comments:

Post a Comment

How to install google-chrome in redhat without redhat subscription

Install google-chrome in redhat  Download the .rpm file of chrome https://www.google.com/chrome/thank-you.html?installdataindex=empty&st...