Edit a .dat file.

This is a discussion on Edit a .dat file. within the C Programming forums, part of the General Programming Boards category; What would be the best way to write up a code so that would allow me to edit text in ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    38

    Edit a .dat file.

    What would be the best way to write up a code so that would allow me to edit text in a data file and then save it. I have no idea on hot to go about it.

    Any help would be much appreciated.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Open the file.

    Read the file.

    Do whatever you intend to do to the file.

    Rewrite the file (from the beginning).

    Close the file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 11:39 PM
  2. edit txt file help
    By pczafer in forum C++ Programming
    Replies: 4
    Last Post: 04-20-2009, 08:49 AM
  3. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 01:44 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM

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