Sha256: 24685ca965d1e65e01f09b068c9bd9b2d83a2679e1a017738f833cfe78668200
Contents?: true
Size: 1.41 KB
Versions: 2
Compression:
Stored size: 1.41 KB
Contents
# this method puts the configuration rexord on the screen def loadrubyslippersconfiguration require 'fileutils' @a_rsconfigurationfilename = "wrubyslippers-#{RubySlippersVersion}.cnf" begin # exception trapped block Dir.chdir($progdir) fileName = File.join(ConfigurationDir, "wrubyslippers-#{RubySlippersVersion}.cnf") fd = File.open(fileName,"r") @a_rsconfigline1= fd.readline.chomp @a_rsconfigline2 = fd.readline.chomp @a_rsconfigline3 = fd.readline.chomp @a_rsconfigline4 = fd.readline.chomp @a_rsconfigline5 = fd.readline.chomp @a_rsconfigline6 = fd.readline.chomp @a_rsconfigline7 =fd.readline.chomp @a_rsconfigline8 = fd.readline.chomp @a_rsconfigline9 = fd.readline.chomp @a_rsconfigline10 = fd.readline.chomp @a_rsconfigline11 = fd.readline.chomp @a_rsconfigline12 = fd.readline.chomp @a_rsconfigline13 = fd.readline.chomp @a_rsconfigline14 = fd.readline.chomp @a_rsconfigline15 = fd.readline.chomp @a_rsconfigline16 = fd.readline.chomp while ! fd.eof? @extrarsconfigdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubyslippers-1.06 | code/superant.com.rubyslippers/loadconfigurationrecord.rb |
rubyslippers-1.07 | code/superant.com.rubyslippers/loadconfigurationrecord.rb |