mình có xem 1 đoạn code trong HELP của BorlandC như sau
Code:
/* findfirst and findnext example */
#include <stdio.h>
#include <conio.h>
#include <dir.h>
int main(void)
{
clrscr();
struct ffblk ffblk;
int done;
printf("Directory listing of *.*\n");
done = findfirst("*.*",&ffblk,0);
while (!done)
{
printf(" %s %2d %2d %2d \n", ffblk.ff_name,ffblk.ff_ftime,ffblk.ff_fdate,ffblk.ff_fsize);
done = findnext(&ffblk);
}
getch() ;
}
/*
char ff_reserved[21]; /* reserved by DOS
char ff_attrib; /* attribute found
int ff_ftime; /* file time
int ff_fdate; /* file date
long ff_fsize; /* file size
char ff_name[13]; /* found file name
*/
nhưng mình không hiểu các con số( time, date, size ) in ra đó, mình muốn chuyển những con số in ra đó cho mình + người dùng hiểu. nếu ai giúp cho biết thêm file đó là READONLY, ẩn ... thì chỉ giúp nhé. Thanks