Thread: file locking over web

  1. #1
    puZZles
    Guest

    file locking over web

    hi, i have a bunch of xml files on a server, which can be accessed by many people. what i would like to have is that if 1 person is writing to a xml file, other users should only have read access to that file. can anyone tell me a way to implement this in c or any other way? it would be best if the xml files can be edited in notepad and then viewed in internet explorer..i am not sure how that would work with a program i write in c to take care of file locking...any ideas are appreciated.

    thanks.

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i think the thing are you need is two-phase locking, the technique used on multiuser databases that stops writes when it is use. Check google - there may be some algo's already written on this.
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 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. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM