Article View: borland.public.kylix.language.cpp
Article #17Re: Retrive the creation date of a file with C++ Builder
From: Andreas Hausladen
Date: Mon, 23 Aug 2004 16:28
Date: Mon, 23 Aug 2004 16:28
22 lines
1472 bytes
1472 bytes
TADONKI Claude wrote: > Hello, > I am looking for a way to retriveve the date inormation of a files > (creation date, last modification, last acces date). I have seeb > soomething like > FileFystem but I don't know how to use it. > FileAge and FileDate only give the last modifications. Linux or Windows? Under Windows you can use the FindFirstFile/FindNextFile/FindClose functions that return a WIN32_FIND_DATA. Or if you have a file handle you can use the GetFileTime() function. Under Linux you can use the fstat or stat (or similar, see Libc + man pages) functions. -- Regards, Andreas Hausladen (http://www.kylix-patch.de.vu - unofficial Kylix 3 patches)
Technical Details
Message-ID:
<412a1b1a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<412A16B4.3789BA4@unige.ch>Show Full Headers
Complete Article Headers
X-Google-Thread: 10ed86,731b2dda6d0b2192 X-Google-Attributes: gid10ed86,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andreas Hausladen" <AndreasDOTHausladen@gNOMAILmx.de> Subject: Re: Retrive the creation date of a file with C++ Builder Newsgroups: borland.public.kylix.language.cpp References: <412A16B4.3789BA4@unige.ch> User-Agent: XanaNews/1.16.1.12 Date: Mon, 23 Aug 2004 18:28:45 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.224.72.2 Message-ID: <412a1b1a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1093278490 217.224.72.2 (23 Aug 2004 09:28:10 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail