Thread: need a piece of advise here

  1. #1
    Registered User
    Join Date
    Feb 2002

    need a piece of advise here

    i had this school project that was to make a database for a music store
    ok i did but all the data was saved in huge array
    now i want to modify the program and make it to store everything in text files

    my question is as follows

    im thinking of two ways to do it
    to export the array to the text file each time so i can manipulate more easily the search function lets say OR to store directly everything into the text files??
    what is more easy to implement

    ill be using microsft visual c++ its in console the progam

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Consider how a text editor edits text

    At the start, you read the text file into memory
    You make a number of changes - add, delete, change
    Occasionally, the user can save the work so far
    At the end, if there has been no save, verify that the user wants to quit.

    All the user data should be in the file, not initialised in your program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need a second opinion - code error and i cant see it
    By bigfootneedhelp in forum C Programming
    Replies: 19
    Last Post: 10-25-2007, 06:02 AM
  2. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  3. Some problems with an abstract class
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 12-13-2006, 03:59 PM
  4. chess program.
    By myk_raniu in forum C++ Programming
    Replies: 2
    Last Post: 12-19-2005, 03:32 PM
  5. Dostris (a complete game in 3 hours)
    By Jeremy G in forum Game Programming
    Replies: 8
    Last Post: 08-30-2003, 02:17 PM