check file was opened