Python for network engineers
latest
  • Download PDF/Epub
  • Introduction
  • Book resources
  • I. Python basics
    • 1. Preparing for work
    • 2. Using Git and Github
    • 3. Getting started with Python
    • 4. Python data types
    • 5. Basic scripts
    • 6. Control structures
    • 7. Working with files
      • File opening
      • File reading
      • File writing
      • File closing
      • with statement
      • Examples of working with files
      • Further reading
      • Tasks
    • 8. Python basic examples
  • II. Code reuse
  • III. Regular expressions
  • IV. Data writing and transmission
  • V. Working with network devices
  • VI. Basics of object-oriented programming
  • VII. Working with databases
  • VIII. Additional information
  • What’s next
Python for network engineers
  • Docs »
  • I. Python basics »
  • 7. Working with files »
  • Further reading
Next Previous

Further reading¶

Documentation:

  • Reading and Writing Files
  • The with statement

Articles:

  • The Python “with” Statement by Example

Stack Overflow:

  • What is the python “with” statement designed for?
Next Previous

© 2015-2022, Natasha Samoylenko. Last updated on Jan 16, 2022. Translated from Russian by Aidar Khairullin

Built with Sphinx using a theme provided by Read the Docs.

This work is licensed under a CC-BY-SA-4.0.

Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.