title: How to check for file lock?
body: <p>Is there any way to check whether a file is locked without using a try/catch block?  </p>
  
  <p>Right now, the only way I know of is to just open the file and catch any <code>System.IO.IOException</code>.</p>