Thread: Filetype Creation

  1. #1

    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
    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:

    ofstream saveFile("someFile.txt");
    saveFile << data << endl;

    Hope that helps!


  3. #3


    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, 02:43 PM
  3. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 10:33 PM
  4. Dynamic Creation of an object
    By axr0284 in forum Windows Programming
    Replies: 3
    Last Post: 02-05-2005, 10:27 AM
  5. Newton + Einstein were wrong!
    By Jez in forum A Brief History of
    Replies: 64
    Last Post: 12-14-2004, 02:24 PM