How to check for file lock? [duplicate]
This question already has answers here: Is there a way to check if a file is in use? (20 answers) Closed 6 years ago. Is there any way to check whether a file is locked without using a try/catch block? Right now, the only way I know of is to just open the file and … Read more