Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  vvc
Language: C/C++
Code:
#include <dirent.h> 
#include <stdio.h> 

int main()
{


DIR *dir;
struct dirent *ent;
if ((dir = opendir ("c:leves")) != NULL) {

  while ((ent = readdir (dir)) != NULL) {
    printf ("%sn", ent->d_name);
  }
  closedir (dir);
} else {
  perror ("");
  return EXIT_FAILURE;
}     
}
          
          
Comments: