hi
i was wondering how to read the files in a directory.
i thought first of all i have to create a file where the files can be written to.
is there a command that checks the location of the file and writes down the files located there i.e. into a text file.Code:FILE *name;
name = fopen ("filelist.txt", "w+");
if (name == NULL)
printf("an error occured\n");
else
...............
fclose(name);