Now the file is closed after reading.