# this method puts the configuration rexord on the screen def loadrwdshellconfiguration require 'fileutils' @a_rshellconfigurationfilename = "rwdshell.cnf" begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, "rwdshell.cnf") fd = File.open(fileName,"r") @a_rshellconfigline1= fd.readline.chomp @a_rshellconfigline2 = fd.readline.chomp @a_rshellconfigline3 = fd.readline.chomp @a_rshellconfigline4 = fd.readline.chomp @a_rshellconfigline5 = fd.readline.chomp @a_rshellconfigline6 = fd.readline.chomp @a_rshellconfigline7 =fd.readline.chomp @a_rshellconfigline8 = fd.readline.chomp @a_rshellconfigline9 = fd.readline.chomp fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end