R
red_hax0r
I've been working on a directory listing program and I want to add
things like time_create to it...
\\-------------------------------------
#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++], "%i", fd.time_create);
}
while (_findnext(fh, &fd) == 0);
m=i;
for (i=0; i < m; i++) printf("%s\n", filelist);
system("pause");
_findclose(fh);
}
return 0;
}
//---------------------
This lists out the dates and times of all the files in a certain
format, which I cannot convert.
It took me a while to work out a program in gcc. If you can help me
with any examples, it would be appreciated.
things like time_create to it...
\\-------------------------------------
#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++], "%i", fd.time_create);
}
while (_findnext(fh, &fd) == 0);
m=i;
for (i=0; i < m; i++) printf("%s\n", filelist);
system("pause");
_findclose(fh);
}
return 0;
}
//---------------------
This lists out the dates and times of all the files in a certain
format, which I cannot convert.
It took me a while to work out a program in gcc. If you can help me
with any examples, it would be appreciated.