functions & file I/O

read 5.4.1–5.4.5