MolSSI-Education / python_scripting_cms

Python Data and Scripting course for computational chemists
https://molssi-education.github.io/python_scripting_cms
Other
83 stars 33 forks source link

Use context-manager to open and read file #53

Open khoivan88 opened 4 years ago

khoivan88 commented 4 years ago
  1. Use context-manager to open and read file.
  2. Add break for breaking out of the loop while reading a file to no wasting computer resources.