Sha256: 27dc7fad63e1299e9eb93d4ca80845599f4334ec038096d95d5cd98bb7b0d6d3
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# this method puts the configuration rexord on the screen def loadconfigurationrecord require 'fileutils' if TinkerWin2ConfigurationFileName @a_configurationfilename = TinkerWin2ConfigurationFileName end begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, TinkerWin2ConfigurationFileName) fd = File.open(fileName,"r") @a_configline1= fd.readline.chomp @a_configline2 = fd.readline.chomp @a_configline3 = fd.readline.chomp @a_configline4 = fd.readline.chomp @a_configline5 = fd.readline.chomp @a_configline6 = fd.readline.chomp @a_configline7 =fd.readline.chomp @a_configline8 = fd.readline.chomp while ! fd.eof? @extraconfigdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rwdschedule-0.93 | code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb |