get ready to read the file.