Thread: Getting file i/o to work

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Exclamation Getting file i/o to work

    Hi,

    I'm working on a database program for movies and renters. I've got the program and user interface working fine, and now I'm trying to get direct file i/o to work. I want the program to instantly save changes to the database, so that the user doesn't have to worry about saving/loading the database.

    The problem is that I don't know much about direct file access. I want the program to save changes to the database on-the-fly, but all my attempts at this so far have failed.

    If anyone feels like trying to get this feature working, I'd greatly appreciate it. I really have run out of ideas on how to get this working. I've attached a zip of all my code, and the other files that MSVC++6 creates when it compiled my program.

    Thanks

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    look into creating a proper database system using SQl, text files and direct plain text file access is not the best method for what you want to do.
    Monday - what a way to spend a seventh of your life

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    8
    I wish I could do that, but this is an assignment that requires directly adding, deleting, and searching through a file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Question about file I/O from a newbie
    By henrik in forum C Programming
    Replies: 4
    Last Post: 11-13-2007, 12:48 AM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  4. File I/O problem
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 12
    Last Post: 09-03-2005, 12:14 PM
  5. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM