I also recommend using `with open` here for reading the file.