|
From: Jason B. <red...@ya...> - 2005-11-26 21:39:43
|
In order to convert time_create I probably must use
time_t or something. How do I do the actual
conversion though?
//************************
#include <io.h>
#include <stdio.h>
#include <string.h>
int i = 0;
int m=0;
char filelist[100][100];
struct _finddata_t fd;
int main() {
long fh = _findfirst("*.*", &fd);
if (fh != -1) {
do {
if (fd.attrib & _A_SUBDIR);
else sprintf(filelist[i++], fd.time_create);
}
while (_findnext(fh, &fd) == 0);
m=i;
for (i=0; i < m; i++) printf("%s\n", filelist[i]);
system("pause");
_findclose(fh);
}
return 0;
}
|