You have to be careful there... You're currenly only explicitly closing the file if they choose "y". Move the
to outside of the if/then/else statement for best results... (perhaps not a big deal, but I've found that if I'm not careful with my file closing, my server gets cranky...)