From: Derek Smith Date: 2009-10-26T10:10:48+09:00 Subject: file open failure test Hi All, I want to test if a file open failed, yet I cannot get this to work. attempt 1: File.open( "#{RUNLOG}", "a" ) do |file| or raise StandardError ... attempt 2 File.open( "#{RUNLOG}", "a" ) do |file| code here... or raise StabdardError ... end thank you! -- Posted via http://www.ruby-forum.com/.