ex16 pertains to reading and writing files