Fixed bool okay to check that the file was opened correctly