Close the file after read.