Re: file info
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 21:29:00 +0000
Dustbin said:
How can I get file info such as timestamp;
datestamp; file length, etc. in C.
By using a library that provides that functionality. Most implementors
supply custom libraries that contain functions to do this kind of thing,
but the details depend on the library.
I suggest comp.unix.programmer or comp.os.ms-windows.programmer.win32 as
obvious next ports of call. Given your user agent, the latter is more
likely.
I have Schildt 1990 - C: The Complete
Reference, as basic resource but this does not
appear to offer anything on the matter.
It doesn't offer much on C, either. Schildt's C books are notorious. I
suggest "The C Programming Language", 2nd edition, by Kernighan and
Ritchie, as your C reference. For Unix, "The Unix Programming Environment"
(Kernighan and Pike) is an excellent introduction, and "Advanced
Programming in the Unix Environment" (W Richard Stevens) will take you
further. For Windows, "Programming Windows", 5th edition (Charles Petzold)
is a fabulous C-based book (later editions, apparently, use some bizarre
new language from Microsoft, so they aren't as helpful). Also, Microsoft's
own MSDN site (<http://msdn.microsoft.com/library/> if I remember rightly)
is a fairly authoritative resource on Windows programming(!).
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: file info
- From: Dustbin
- Re: file info
- References:
- file info
- From: Dustbin
- file info
- Prev by Date: Re: file info
- Next by Date: Re: the lowest number of comparisons in string matching
- Previous by thread: Re: file info
- Next by thread: Re: file info
- Index(es):
Relevant Pages
|