🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.kylix.language.cpp
2 messages
2 total messages Started by TADONKI Claude Mon, 23 Aug 2004 16:09
Retrive the creation date of a file with C++ Builder
#16
Author: TADONKI Claude
Date: Mon, 23 Aug 2004 16:09
6 lines
1107 bytes
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.
Re: Retrive the creation date of a file with C++ Builder
#17
Author: Andreas Hausladen
Date: Mon, 23 Aug 2004 16:28
22 lines
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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads