C Programmign : Program untuk daftar file dalam direktori

Onepoin.com - Kode pemrograman C (Turbo C compiler saja)

#include <stdio.h>#include <conio.h>#include <dir.h>
int main(){ int done; struct ffblk a;
printf("Press any key to view the files in the current directory\n");
getch();
done = findfirst("*.*",&a,0);
while(!done) { printf("%s\n",a.ff_name); done = findnext(&a); }
getch(); return 0;} 
 
 
 

Subscribe to receive free email updates:

0 Response to "C Programmign : Program untuk daftar file dalam direktori"

Post a Comment