Filetype Creation

This is a discussion on Filetype Creation within the C++ Programming forums, part of the General Programming Boards category; Can anyone give me a linkto a tutorial or expalin to me how i can make my own file type ...

  1. #1
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336

    Question Filetype Creation

    Can anyone give me a linkto a tutorial or expalin to me how i can make my own file type in C++?
    Give me a bad reputation!!!

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    94
    When you're creating the file, just add the extension you want to use. For example, if you want to make a save game file with a ".sav" extension, you'd type:

    [code]
    ofstream saveFile("someFile.txt");
    saveFile << data << endl;
    saveFile.close();
    [\code]

    Hope that helps!

    Brendan

  3. #3
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336

    filetype

    Thnks. yeah i figured it out but i have one more question when i open some file types(like bmp) in notepad it comes up with jumbled characters does that have to do with encryption or just length of the file?
    Give me a bad reputation!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 07:53 AM
  2. Replies: 2
    Last Post: 12-16-2008, 01:43 PM
  3. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 09:33 PM
  4. Dynamic Creation of an object
    By axr0284 in forum Windows Programming
    Replies: 3
    Last Post: 02-05-2005, 09:27 AM
  5. Newton + Einstein were wrong!
    By Jez in forum A Brief History of Cprogramming.com
    Replies: 64
    Last Post: 12-14-2004, 01:24 PM

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