Python makes File Input and Output pleasantly easy.
Today we'll be creating a Madlib game that reads in a template file and writes a file back out with user input injected.
Will also handle exceptions as well as test that they are properly raised.
- How python performs file input/output
- Different modes for opening a file
- Different kinds of file content, binary or text
- Python exceptions
- Reading a text file
- Writing a text file
- Reading a binary file
- Writing a binary file
- Handling exceptions
- Raising exceptions
- Testing exceptions
Instructor to add. See facilitator guide for details.