File Formats

This is a discussion on File Formats within the C++ Programming forums, part of the General Programming Boards category; how do u create ur own file format like .vef or just some other format...

  1. #1
    Unregistered
    Guest

    File Formats

    how do u create ur own file format like .vef or just some other format

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    I don't think that a file extension really does anything to the file. It just tells the user what app to run them with and the operating system/apps might have some preset. For example, if you have Word, when you open a .doc file, it automatically opens it in word.

  3. #3
    Unregistered
    Guest
    Yeah, it wont do much to the actual format of the file, but when you create the file to write to it, just have it create the file as myfile.vef or whatever.. You could integrate some encryption program so your program will be the only one that will be able to open and write to the file... if the information was that important

  4. #4
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    >> how do u create ur own file format like .vef or just some other format <<

    ofstream fout;

    fout.open("MYFILE.VEF");
    // do your stuff


    >>>You could integrate some encryption program so your program will be the only one that will be able to open and write to the file... if the information was that important <<

    you can open all files any extension in wordpad or some text editor. so if your file contains simple english/readable text then it can be read unless you write or use a crypto program.


    hope this is what you were asking for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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