code/superant.com.rwdshell/loadconfigurationrecord.rb in rwdshell-0.99 vs code/superant.com.rwdshell/loadconfigurationrecord.rb in rwdshell-1.00
- old
+ new
@@ -11,19 +11,11 @@
Dir.chdir($progdir)
fileName = File.join(ConfigurationDir, "rwdshell.cnf")
fd = File.open(fileName,"r")
- @a_rshellconfigline1= fd.readline.chomp
- @a_rshellconfigline2 = fd.readline.chomp
- @a_rshellconfigline3 = fd.readline.chomp
- @a_rshellconfigline4 = fd.readline.chomp
- @a_rshellconfigline5 = fd.readline.chomp
- @a_rshellconfigline6 = fd.readline.chomp
- @a_rshellconfigline7 =fd.readline.chomp
- @a_rshellconfigline8 = fd.readline.chomp
- @a_rshellconfigline9 = fd.readline.chomp
-
+ @a_rshellconfiguration= fd.read
+
fd.close
rescue SystemCallError, StandardError
$stderr.print "system call error: " + $!