Sha256: 9ff2f98521425ea132de086fe93ea385407a8b2387440b0c45485d7f6a99e3ac

Contents?: true

Size: 892 Bytes

Versions: 10

Compression:

Stored size: 892 Bytes

Contents

   # this method views an existing address record
  def loadnamerecord
 
         require 'fileutils'
        @a_filename = $currentnametext
	      
        begin # exception trapped block
       
       
	      fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
        
	      fd = File.open(fileName,"r")
	      @a_name =        fd.readline.chomp
        @a_address = fd.readline.chomp
         @a_citystatezip  = fd.readline.chomp
         @a_phone = fd.readline.chomp
        @a_email = fd.readline.chomp
         @a_comment1 = fd.readline.chomp 
          @a_comment2 =fd.readline.chomp
          @a_comment3 = fd.readline.chomp
	 
	      while ! fd.eof?
	        @extranamedatadisplay = fd.readline
	      end
        fd.close
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue

  end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rwdaddresses-0.98 code/superant.com.rwdaddresses/loadnamerecord.rb
rwdaddresses-0.93 code/gl3addresses/gl6loadnamerecord.rb
rwdaddresses-0.91 code/gl3addresses/gl6loadnamerecord.rb
rwdaddresses-0.99 code/superant.com.rwdaddresses/loadnamerecord.rb
rwdaddresses-1.01 code/superant.com.rwdaddresses/loadnamerecord.rb
rwdaddresses-0.97 code/superant.com.rwdaddresses/loadnamerecord.rb
rwdaddresses-0.9 code/gl3addresses/gl6loadnamerecord.rb
rwdaddresses-0.92 code/gl3addresses/gl6loadnamerecord.rb
rwdaddresses-0.95 code/superant.com.rwdaddresses/loadnamerecord.rb
rwdaddresses-0.94 code/superant.com.rwdaddresses/loadnamerecord.rb