file creation time

hi,
I’m looking for a way to get file or directory creation time from C/C++
code.

Thanks

How about stat() function. It doesn’t work?

/Batu

Itzik Nesher wrote:

hi,
I’m looking for a way to get file or directory creation time from
C/C++ code.

Thanks

Itzik Nesher <nesher@mmi.co.il> wrote:

hi,
I’m looking for a way to get file or directory creation time from C/C++
code.

Use stat(), it will return a struct stat, which includes:
st_ftime, /* Time created /
st_mtime, /
Time of last data modification /
st_atime, /
Time last accessed /
st_ctime; /
Time of last status change */

-David

QNX Training Services
dagibbs@qnx.com