Re: file info



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)
.



Relevant Pages

  • Re: [9fans] Standalone unix port of the original rc shell
    ... or whatever the right compiler is -- gcc isn't the only ... Unix has grown ridiculously long-winded in its old age. ... > me is, that all headers reside in $PLAN9/include, which ... libraries they need to be linked with. ...
    (comp.os.plan9)
  • Re: RfD: One-time file loading
    ... >>the means to achieve the functionality. ... If the proposal does not specify what the system ... I hate load screens, and I hate including ... as libraries, and applications that are subdivided over different ...
    (comp.lang.forth)
  • Re: Using the XCode tools on Mac OSX to compile tcl/tk 8.5.5 C application ...
    ... macosx/GNUMakefile or the unix configure & make? ... built dynamic libraries are found... ... and it appears that there is an 8.5 framework now ...
    (comp.lang.tcl)
  • Re: Unit Testing an ASP.NET Website using VS2008 Pro
    ... Move your classes from App_Code to their own libraries. ... you will have no problem using a unit test framework to test your functionality. ... Publish and set nUnit to point to those files ... unexpected error in displaying the Create Unit Tests Dialog. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: compile+link Fujitsu Linux
    ... just as Charles reported. ... In the late '90s POSIX became the Unix standard. ... LD_LIBRARY_PATH is used to load dynamic libraries at run time. ... can 'front end' the search path. ...
    (comp.lang.cobol)