code/superant.com.schedule/loadconfigurationrecord.rb in rwdschedule-1.00 vs code/superant.com.schedule/loadconfigurationrecord.rb in rwdschedule-1.01
- old
+ new
@@ -11,32 +11,10 @@
Dir.chdir($progdir)
fileName = File.join(ConfigurationDir, "rwdschedule.cnf")
fd = File.open(fileName,"r")
- @a_schconfigline1= fd.readline.chomp
- @a_schconfigline2 = fd.readline.chomp
- @a_schconfigline3 = fd.readline.chomp
- @a_schconfigline4 = fd.readline.chomp
- @a_schconfigline5 = fd.readline.chomp
- @a_schconfigline6 = fd.readline.chomp
- @a_schconfigline7 =fd.readline.chomp
- @a_schconfigline8 = fd.readline.chomp
- @a_schconfigline9 = fd.readline.chomp
- @a_schconfigline10= fd.readline.chomp
- @a_schconfigline11= fd.readline.chomp
- @a_schconfigline12= fd.readline.chomp
- @a_schconfigline13= fd.readline.chomp
- @a_schconfigline14= fd.readline.chomp
- @a_schconfigline15= fd.readline.chomp
- @a_schconfigline16= fd.readline.chomp
- @a_schconfigline17= fd.readline.chomp
- @a_schconfigline18= fd.readline.chomp
-
-
- while ! fd.eof?
- @extraschconfigdatadisplay = fd.readline
- end
+ @a_schconfigurationfile = fd.read
fd.close
rescue SystemCallError, StandardError
$stderr.print "system call error: " + $!
end # exception rescue