title: How to test if a file is currently being written to
body: <p>I have an application that must check a folder and read any files that are copied into it.
  How do I test if a file in that folder is currently being written to? I only want to read files
  that have had all their data written to them and are closed.</p>