Thread: file handling ....!

  1. #1
    Registered User
    Join Date
    Jul 2002

    file handling ....!

    in one of my project ,150 to 200 customers r there. .and i have to maintain record of each. There r 3 separate programs on separate machine to update that records.
    So options in front of me r:
    1 “to maintain 1 file and store all records in the same file” or
    2 “maintain separate 150 or 200 files..(each file for each person) “

    RequirementSecurity is more imp. Than the accuracy )

    so tell me which one is feasible.. and at minimum risk.

    My second ques is : Is it possible that 2 programs can simultaneously update records from same file?
    Both problems r related to C.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Your first problem is more complicated than you think. If you have a single file, on which machine does it reside, if you have 150-200, where do they reside?

    In general, security issues are easiest to solve by having a single file store application on a server machine and multiple distributed clients performing updates. If you have a server process managing access to your file/s the actual structure of your file/s is transparent to the application clients, (good if you wish to change it later!).

    Your second question, yes, but it can be risky. It depends how much security you need and how much work you are prepared to do. You need to do your own record level locking. A standard DB package will allow you to do what you want if you have access to one.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating File Handling Functions
    By td4nos in forum C Programming
    Replies: 6
    Last Post: 06-26-2009, 11:43 AM
  2. basic file handling problem
    By georgen1 in forum C Programming
    Replies: 4
    Last Post: 03-05-2009, 06:21 AM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM