[Delphi] Właściwości pliku

0

Witam, czy ktoś mógłby mi podpowiedzieć, jak z poziomu aplikacji odczytać datę utworzenia i datę modyfikacji pliku np. (C:\tekst.doc)

Z góry dziękuję za pomoc ;-)

0
Unit

SysUtils

Category

file management routines

Delphi syntax:

function FileAge(const FileName: string): Integer;

C++ syntax:

extern PACKAGE int __fastcall FileAge(const AnsiString FileName);

Description

Call FileAge to obtain the OS timestamp of the file specified by FileName. The return value can be converted to a TDateTime object using the FileDateToDateTime function. The return value is -1 if the file does not exist.

Help nie gryzie :P

1 użytkowników online, w tym zalogowanych: 0, gości: 1