T
Tim
Does anyone know a way to read the filenames from a given directory in
C in a Solaris environment?
I did this, but it seems goofy:
sprintf(t, "ls *.csv > filenames.txt");
system(t);
fptr = fopen("filenames.txt", "r");
while (!(feof(fptr)))
{
fgets(line, 100, fptr);
blah-blah-blah
Is there a way to do this without creating another file?
-Tim
C in a Solaris environment?
I did this, but it seems goofy:
sprintf(t, "ls *.csv > filenames.txt");
system(t);
fptr = fopen("filenames.txt", "r");
while (!(feof(fptr)))
{
fgets(line, 100, fptr);
blah-blah-blah
Is there a way to do this without creating another file?
-Tim