Sha256: 37e5ef685add87c1e47b7db2bf175a9fab2f0e116c408535c8b59c13c8c1669c
Contents?: true
Size: 961 Bytes
Versions: 11
Compression:
Stored size: 961 Bytes
Contents
# this method views an existing address record def loadicseventrecord require 'fileutils' @a_eventfilename = $currenteventtext begin # exception trapped block fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch" fd = File.open(fileName,"r") @a_eventtime = fd.readline.chomp @a_eventwhat = fd.readline.chomp @a_eventaddress = fd.readline.chomp @a_eventphone = fd.readline.chomp @a_eventemail = fd.readline.chomp @a_eventcomment1 = fd.readline.chomp @a_eventcomment2 =fd.readline.chomp @a_eventcomment3 = fd.readline.chomp while ! fd.eof? @extraeventdatadisplay = fd.readline end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
11 entries across 11 versions & 2 rubygems