Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- #include<stdio.h>
- #include<io.h>
- #include<dos.h>
- #include<stdlib.h>
- #include<dir.h>
- #include<direct.h>
- main()
- {
- clrscr();
- int c=15;
- struct ffblk d;
- register int fin;
- fin=findfirst("*.c",&d,0);
- while(!fin)
- {
- gotoxy(15,13);
- printf("Filename:");
- gotoxy(15,c);
- printf("%s",d.ff_name);
- gotoxy(30,13);
- printf("Attribute:");
- gotoxy(30,c);
- printf("%s", d.ff_attrib);
- fin=findnext(&d);
- c=c+1;
- }
- getch();
- return 0;
- }
Add Comment
Please, Sign In to add comment