I want to lock a file exclusively for a job (no updates/no read from any other job till my job completes). If some one is else is trying to use the file, then i want to send a Message to the User who is trying to use the file. These are the lines of code by which i am trying to do it.
...
