Solved

Get date and time on a file in "C"

Posted on 2000-04-05
2
191 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
Comment Utility
Use the _fstat() function from the standard C library.
0
 

Author Comment

by:sdurgala
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IDE C compiler 5 119
Change to the struct 72 191
C dll call freezes 5 88
How to jump to matching brace in eclipse editor ? 1 234
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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops 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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now