There are two methods of file locking, optimistic and pessimistic. With optimistic, the user loads and edits the file, then when they are done, the record is locked, saved, and unlocked. With pessimistic, the record is locked, the user edits it, then it is saved and unlocked. ...