Solved

Get date and time on a file in "C"

Posted on 2000-04-05
2
194 Views
Last Modified: 2010-04-02
How can I get the date and time of a file using "C" in Windows NT 4.

I know how to do this using C++ and MFC but I need to know how
to do this is "C", on Windows NT.
0
Comment
Question by:sdurgala
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 2687840
Use the _fstat() function from the standard C library.
0
 

Author Comment

by:sdurgala
ID: 2689994
Thanks,

    _fstat() works but I'm going to use _stat()
    because you don't have to have the file
    open when you use _stat().

    I never would of got this one with out your
    help, thanks again...
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question