How to perform python input/output operations on files with python open function - LinuxConfig.org

The manipulation of files is an operation which sooner or later we'll need to perform in our programs. The python built-in open function returns a file object, which lets us interact with files in different modes: we will see them in this article.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-perform-python-input-output-operations-on-files-with-python-open-function