Use with statement to close file handle