Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI718.ASC
PRODUCT : Borland C++ NUMBER : 718
VERSION : 2.0
OS : DOS
DATE : February 25, 1992 PAGE : 1/1
TITLE : Printing the Date and Time of a File
/*************************************************************
This program will print the date and time of a file.
*************************************************************/
#include
#include
union FF
{
unsigned i[2];
struct ftime f;
} u;
main()
{
struct ffblk ff;
findfirst("tc.exe", &ff, 0);
u.i[0]= ff.ff_ftime;
u.i[1]= ff.ff_fdate;
printf("date= %d/%d/%d time= %d:%d:%d\n",
u.f.ft_month, u.f.ft_day, u.f.ft_year+80,
u.f.ft_hour, u.f.ft_min, u.f.ft_tsec);
return 0;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/