Re: file info



Richard Heathfield wrote:
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(!).

THX

D.



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



Relevant Pages

  • Re: Android apps are limited to 256 MB of storage space
    ... many bits of functionality that you ignored any need for when ... showing how trivial the problem is by showing the "hard" parts. ... rotation app would be easy as the libraries do all the hard work. ... the timer, etc, but that is all TRIVIAL programming, which quite ...
    (comp.sys.mac.advocacy)
  • Re: What languages do you regularly use besides forth?
    ... There's the hope that the programming won't get in the way too much. ... likely going to create libraries of reusable code. ... in those programming language communities where sharing is an active ... design and simulate Forth systems. ...
    (comp.lang.forth)
  • Re: CL-UNIFICATION as a library (Re: Qi Seems Great)
    ... perhaps it is time for a new revision for the language? ... Common Lisp people looking down on everybody else, ... But I'm not new to programming - that's ... should find the CL implementation and set of libraries most suitable ...
    (comp.lang.lisp)
  • Re: What languages do you regularly use besides forth?
    ... There's the hope that the programming won't get in the way too much. ... the language quickly and easily and then just do their work. ... likely going to create libraries of reusable code. ... in those programming language communities where sharing is an active ...
    (comp.lang.forth)
  • Re: CL-UNIFICATION as a library (Re: Qi Seems Great)
    ... there are many different kinds of programming. ... and CLiki are not very friendly adds another frustration to the pile. ... on a "recommended set of libraries" out of the existing ones. ...
    (comp.lang.lisp)