Sha256: f411aecac76a3788dbb052daf0b1441c28e6855269366d919af2b3fd2647b25a
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 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 @a_configline9 = fd.readline.chomp @a_configline10 = fd.readline.chomp @a_configline11 =fd.readline.chomp @a_configline12 = fd.readline.chomp @a_configline13 =fd.readline.chomp @a_configline14 = 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
5 entries across 5 versions & 4 rubygems