Closing file after reading