Ensured file can be opened