code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb in rwdschedule-1.00 vs code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb in rwdschedule-1.01

- old
+ new

@@ -10,21 +10,10 @@ 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 + @a_configurationfile = fd.read fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue