Sha256: b6990d79dd036b1f6cf7afbce178d84bf9332bb3c731fc0091fa017302c7a572
Contents?: true
Size: 1.28 KB
Versions: 5
Compression:
Stored size: 1.28 KB
Contents
# this method puts the configuration rexord on the screen def loadrwdaddressesconfiguration require 'fileutils' @a_adconfigurationfilename = "rwdaddresses.cnf" begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, "rwdaddresses.cnf") fd = File.open(fileName,"r") @a_adconfigline1= fd.readline.chomp @a_adconfigline2 = fd.readline.chomp @a_adconfigline3 = fd.readline.chomp @a_adconfigline4 = fd.readline.chomp @a_adconfigline5 = fd.readline.chomp @a_adconfigline6 = fd.readline.chomp @a_adconfigline7 =fd.readline.chomp @a_adconfigline8 = fd.readline.chomp @a_adconfigline9 = fd.readline.chomp @a_adconfigline10 = fd.readline.chomp @a_adconfigline11 = fd.readline.chomp @a_adconfigline12 = fd.readline.chomp @a_adconfigline13 = fd.readline.chomp @a_adconfigline14 = fd.readline.chomp @a_adconfigline15 = fd.readline.chomp @a_adconfigline16 = fd.readline.chomp @a_adconfigline17 = fd.readline.chomp @a_adconfigline18 = fd.readline.chomp @a_adconfigline19 = fd.readline.chomp while ! fd.eof? @extraadconfigdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
5 entries across 5 versions & 2 rubygems