
07.10.2015, 14:23
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
Код:
var
h: Integer;
ft: TFileTime;
st: TSystemTime;
begin
h:=FileOpen('Project1.dpr', fmOpenRead);
if h=-1 then RaiseLastOSError;
try
if not GetFileTime(h, @ft, nil, nil) then RaiseLastOSError;
FileTimeToSystemTime(ft, st);
Edit1.Text:=DateTimeToStr(SystemTimeToDateTime(st));
finally
FileClose(h);
end;
end;
__________________
Пишу программы за еду.
__________________
|