Re: file info



Jan v/d Broek wrote:

in news:8yBSg.40834$PD.19407@xxxxxxxxxxxxxxxxxxxxxxxxx\n27 sep 2006, Dustbin schrieb:


How can I get file info such as timestamp; datestamp; file length, etc. in C.

I have Schildt 1990 - C: The Complete Reference, as basic resource but this does not appear to offer anything on the matter.

D.



Dit is somewhat platform-dependent, if you're on a Unix-like environment
you may want to look at the stat-function. On a DOS/Windows-based platform it might be in the findfirst/findnext-functions.

THX.

You are right; these data are in the find_t struct and the data are returned by the _dos_findfirst() call. I didn't look there because I didn't expect to find it there.

D.



--
=======================
Women have spent the last
30 years proving that men
have been right for the
last 30 centuries.
=======================
.