> How can I check if the file is locked before reading its contents? Just handle the exception. Doing nothing in the handler is perfectly fine. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-File-is-locked-tp4045497p4045501.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.