From: Tait Pollard Date: 2006-07-21T02:24:55+09:00 Subject: Re: Newbie - Q: working with files > handle_command(tokens, line) > end > puts "End of file reached" > @heap.dump(@obj_file) > end > > The problem is that I parse the entire file (@in_file), and my app > exits, but I never execute the puts "End of file reached". Anyone have > any ideas why? Maybe something is going wrong in your handle_command call that makes the program exit without finishing. Make sure you are running ruby with warnings on and that might help a little. Tait Pollard -- Posted via http://www.ruby-forum.com/.