Thread: Making a .dat file

  1. #1
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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, 07: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, 09:54 AM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10: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