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