Solved

Get date and time on a file in "C"

Posted on 2000-04-05
2
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which version of C should I use when Perl is too slow? 13 187
Problem in finding output of a program 11 110
c++ getting the first 10 characters of a char* string 11 105
valid enum? 6 75
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
The goal of this video is to provide viewers with basic examples to understand recursion 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.

730 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