Use the with statement to open a file.
Merge pull request #4327 from abhinav-upadhyay/use-with-to-read-file

Use the with statement to open a file.