# this method puts the configuration rexord on the screen def loadrwdscheduleconfiguration require 'fileutils' @a_schconfigurationfilename = "rwdschedule.cnf" begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, "rwdschedule.cnf") fd = File.open(fileName,"r") @a_schconfigline1= fd.readline.chomp @a_schconfigline2 = fd.readline.chomp @a_schconfigline3 = fd.readline.chomp @a_schconfigline4 = fd.readline.chomp @a_schconfigline5 = fd.readline.chomp @a_schconfigline6 = fd.readline.chomp @a_schconfigline7 =fd.readline.chomp @a_schconfigline8 = fd.readline.chomp @a_schconfigline9 = fd.readline.chomp @a_schconfigline10= fd.readline.chomp @a_schconfigline10= fd.readline.chomp @a_schconfigline11= fd.readline.chomp @a_schconfigline12= fd.readline.chomp @a_schconfigline13= fd.readline.chomp @a_schconfigline14= fd.readline.chomp @a_schconfigline15= fd.readline.chomp @a_schconfigline16= fd.readline.chomp @a_schconfigline17= fd.readline.chomp @a_schconfigline18= fd.readline.chomp while ! fd.eof? @extraschconfigdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end