Making a .dat file

This is a discussion on Making a .dat file within the C++ Programming forums, part of the General Programming Boards category; Is there anything special to do? My book only says to make a .dat file and use a header line. ...

  1. #1
    MB1
    MB1 is offline
    Registered User
    Join Date
    Feb 2005
    Posts
    38

    Making a .dat file

    Is there anything special to do? My book only says to make a .dat file and use a header line. Is there any special coding?

    Thanks,
    MB1

  2. #2
    Banned Yuri's Avatar
    Join Date
    Aug 2005
    Location
    Breukelen, The Netherlands
    Posts
    133
    Just:
    Code:
    std::fstream dat ( "dat_file.dat", std::ios::out );
    Last edited by Yuri; 11-01-2005 at 01:52 PM.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    A .dat file could be anything. I would say it's close to a RAW file.

    Basically anything you want to stick in it, you can. Develop your own format.

    Header
    Data

    That's it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 08:51 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 11:12 PM
  5. how to convert a text file to a .dat file
    By Linette in forum C++ Programming
    Replies: 11
    Last Post: 02-25-2002, 05:58 AM

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