Sha256: 101e0aefeb94a5bba1187f1e20c97cc59dac529f343f771e6ad4ce17e6606065

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

   # this method puts the configuration rexord on the screen
  def loadrwdaddressesconfiguration
 
         require 'fileutils'
          
               @a_adconfigurationfilename = "rwdaddresses.cnf" 
        
	      
        begin # exception trapped block
       
       Dir.chdir($progdir)
	      fileName = File.join(ConfigurationDir, "rwdaddresses.cnf")
        
        
	      fd = File.open(fileName,"r")
	      @a_adconfigline1=        fd.readline.chomp
	      @a_adconfigline2 =  fd.readline.chomp
        @a_adconfigline3 = fd.readline.chomp
          @a_adconfigline4 = fd.readline.chomp
        @a_adconfigline5 = fd.readline.chomp
         @a_adconfigline6 = fd.readline.chomp 
          @a_adconfigline7 =fd.readline.chomp
          @a_adconfigline8 = fd.readline.chomp
           @a_adconfigline9 = fd.readline.chomp
           @a_adconfigline10 = fd.readline.chomp
           @a_adconfigline11 = fd.readline.chomp
           @a_adconfigline12 = fd.readline.chomp
           @a_adconfigline13 = fd.readline.chomp
           @a_adconfigline14 = fd.readline.chomp
           @a_adconfigline15 = fd.readline.chomp
           @a_adconfigline16 = fd.readline.chomp
           @a_adconfigline17 = fd.readline.chomp
	 
	      while ! fd.eof?
	        @extraadconfigdatadisplay = fd.readline
	      end
        fd.close
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue

  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rwdaddresses-0.99 code/superant.com.rwdaddresses/loadconfigurationrecord.rb