From: Joseph McDonald Date: 2001-07-10T05:17:26+09:00 Subject: [ruby-talk:17555] Re: What happens when File.new fails? BWD> What happens when I try to open a non-existant file: BWD> fh = File.new('missing-file.txt') BWD> It appears that an exception is thrown, but I can't find any documentation BWD> to that effect in the pickaxe book. Try this: begin fh = File.new('missing-file.txt') rescue p $! end prints: # regards, -joe