Дополнительные материалы# Документация: Reading and Writing Files The with statement Статьи: The Python «with» Statement by Example Stack Overflow: What is the python “with” statement designed for?