read file details

This is a discussion on read file details within the C Programming forums, part of the General Programming Boards category; i am intermediate level in c programming, i tried to write my program that reads selected file details such as ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Red face read file details

    i am intermediate level in c programming, i tried to write my program that reads selected file details such as file size, file created date..., but i haven't clear idea about that. anybody can help me?

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    What platform?

    If it's Windows use GetFileTime() and convert it from FILETIME to SYSTEMTIME with FileTimeToSystemTime(). Otherwise if it's POSIX you can use stat() from sys/stat.h.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 04:39 AM
  4. c script help to read a file & update
    By indy in forum C Programming
    Replies: 8
    Last Post: 12-01-2003, 11:32 AM
  5. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21