I am developing an application that will allow a user to load an external file, modify it, and then save the file back again. More than one user will be able to access the program.
How can I lock out the file when one person is editing it in order that errors don't occur if two people run the program at the same time - ideally, it would be something similar to the thing you get in a Microsoft Office application i.e. "This document is being edited by A.N. Other. Do you want to open a read-only copy?"
Thanks,
Paul
How can I lock out the file when one person is editing it in order that errors don't occur if two people run the program at the same time - ideally, it would be something similar to the thing you get in a Microsoft Office application i.e. "This document is being edited by A.N. Other. Do you want to open a read-only copy?"
Thanks,
Paul