# this method puts the configuration rexord on the screen def loadrwdshellconfiguration require 'fileutils' rwdrubyname = "rwdwruby-" + RwdRubyVersion + ".cnf" @a_rshellconfigurationfilename = rwdrubyname begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, rwdrubyname) fd = File.open(fileName,"r") @a_rshellconfiguration= fd.read fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end