Thread: Acessing file properties

  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    34

    Acessing file properties

    Is it possible to access file properties from c++ program? For example, user could drag file to program and then it displays a detailed information about file like date modified, size, type and etc..

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It is possible, but most of the things except type (e.g. symlink, hard link, file, directory) and size usually requires platform-specific APIs.
    You can take a look at Filesytem, which is part of TR2. Some compilers support it and others do not, but it is standard C++.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C++] Read File properties
    By Jelte in forum C++ Programming
    Replies: 1
    Last Post: 08-18-2010, 08:45 AM
  2. File properties by type
    By kroiz in forum C# Programming
    Replies: 7
    Last Post: 09-24-2008, 11:13 AM
  3. mp3 file properties in windows xp
    By JamesMI in forum Tech Board
    Replies: 7
    Last Post: 01-07-2004, 09:48 AM
  4. File Properties?
    By Dmalia in forum C Programming
    Replies: 5
    Last Post: 11-26-2002, 11:14 AM
  5. File properties...
    By Korn1699 in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2002, 01:04 PM