Ensure to opened file.