Thank you very much for your reply.
Yes, it's a file on a common drive. This option is very interesting. However, in Windows, anyone could unlock the file by doing the reverse procedure. Do you know if it is possible to forbid access to the "read-only" box to other users after applying your procedure ?