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