57.List files in directory




#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;
}

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer