Jut about any program of a decent size needs to be able to read and write from files. At very least, it needs to be able to generate logs.
This is a companion discussion topic for the original entry at https://linuxconfig.org/reading-and-writing-files-with-python/