Thread: Still need info about file creation

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    7

    Angry Still need info about file creation

    I cant seem to find out how to add Author, Description, Comments, etc... (as seen in the file properties) directly when creating the file. I am thinking there must be something I can easily work with to add this info when a file is created in the program

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    156

    ?

    Learn some programming first before you play around with comments. For your curiosity, here it is anyways:

    Code:
    /*
     Author: A programmer
     Date: Today
     Phone Number: My boyfriend has it
    */
    
    
    #include <iostream>
    
    int main()
    {
     cout << "Hello world!!" << endl;
     cin.get();
     return 0;
    }
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    7
    Ah, I guess I wasnt very clear in my post. What I am after is the properties summary stuff, not source code comments.
    For example, if you open windows explorer and right click on a file, select Properties, then select the Summary Tab, it has fields you can edit about the file, such as Author, Comments, Title, Subject, and description.
    I would like to populate these field when I create the file, but I cant seem to find out if there is some kind of standard variable in some recordset or class or object that handles them.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    Bunny: why would it be bad to play with comments before writing code?? Dont you think that it'd be a good idea if people learn to write comments from the word go!

    Go ahead with the comments i say!!

    Lee: the stuff you are looking for is windows specific! not c++ specific. look through MSDN and the windows API to get information on this.

    Good luck
    U.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  5. #5
    Registered User Azuth's Avatar
    Join Date
    Feb 2002
    Posts
    236
    This link may help.

    MSDN - Summary Info
    Demonographic rhinology is not the only possible outcome, but why take the chance

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. File Creation with fixed PREFIX & SUFFIX !!!
    By mehuldoshi in forum C Programming
    Replies: 2
    Last Post: 07-29-2002, 06:02 AM
  5. Simple File Creation Algorithm
    By muffin in forum C Programming
    Replies: 13
    Last Post: 08-24-2001, 03:28 PM