File_lock Checks the active username when the file is opened and check whether the time is between the allowed time period. If not, the file closes.