Report question

Question: How to create and lock a file for writing only if it does not exist