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 y=15;
- struct find_t f;
- register int done;
- done=_dos_findfirst("*.c", _A_NORMAL, &f);
- while(!done)
- {
- gotoxy(15,13);
- printf("Filename:");
- gotoxy(15,y);
- printf("%s",f.name);
- gotoxy(30,13);
- printf("Size:");
- gotoxy(30,y);
- printf("%ld", f.size);
- done=_dos_findnext(&f);
- y=y+1;
- getch();
- return 0;
- }
Add Comment
Please, Sign In to add comment