i have written a program which is about file read write and what should i do if i dun want another user use the program while someone is using it?

cos this program can be used in different computers with the files are in the shared directory.

does it related to "ios"??
thank you