Originally posted as a Categorized Question.
In reply to How do I test a file to see if it is being written to? by Anonymous Monk