?
Solved

Get date and time on a file in "C"

Posted on 2000-04-05
2
Medium Priority
?
198 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

777 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