Updated example to also include explicit #close on #fopen'ed files.