chapter_7 I made last file input and output of