Close file after read.