Sha256: c32d5cd1588927bd78fea4333080bc2b4cea4bf155b862bc548c65bbe9e9b5c9
Contents?: true
Size: 1.09 KB
Versions: 7
Compression:
Stored size: 1.09 KB
Contents
# 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 while ! fd.eof? @extraschconfigdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
7 entries across 7 versions & 2 rubygems