title: How to check if file is in locked mode?
body: <p>Can someone help me to check file is already in locked mode?</p>
  
  <p>My program is unable to read the file because it is in locked mode, Then I re-create file again and my programme read file with no issue.</p>
  
  <p>so is there any way to check file is already in locked mode? </p>