Bulk Programming
Each function does a complete job, not just part of it.
Easier to reuse elsewhere!
- read a character from a file
- get next line from the input
- get next word from the input
- split string into lines
lines ”ab\ncd”
[”ab, ”cd”]
- split string into words
words ”hi there”
[”hi”, ”there”]