Board index » cppbuilder » FileGetDate function

FileGetDate function


2003-09-17 01:24:50 PM
cppbuilder75
Hello,
Is anybody could give me one example of program using the function
FileGetDate() or FileSetDate() because I have some difficult to understand
the functionning and the format.
Thanks a lot
J-C. Berlani
 
 

Re:FileGetDate function

Thanks a lot for your help.
Regards
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >a écrit dans le message news:
3f67f5d7$ XXXX@XXXXX.COM ...
Quote

"Berlani" < XXXX@XXXXX.COM >wrote in message
news:3f67f023$ XXXX@XXXXX.COM ...

>Is anybody could give me one example of program using the
>function FileGetDate() or FileSetDate() because I have some
>difficult to understand the functionning and the format.

Here you go:

int iFile = FileOpen("somefile.ext", fmOpenRead);
if( iFile != -1 )
{
int iDate = FileGetDate(iFile);
TDateTime dt = FileDateToDateTime(iDate);
//...
FileClose(iFile);
}


Gambit