MCS 260 Fall 2021
We'll discuss it in some detail on Monday.
To motivate that discussion, let's work through an example program where it might be useful.
We have talked about how to read and write strings in text files.
Often, files are used to hold structured data that is generated by one program, and used by another.
Accomplishing that with
str.format() is possible, but tedious and error-prone.
Count the words in a file and print a report: