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/.