Sha256: 9167127e5eea611ef8625dc45c8617ceddb899238a8133df8d7a7558d05cf9cc
Contents?: true
Size: 929 Bytes
Versions: 6
Compression:
Stored size: 929 Bytes
Contents
# this method views an existing address record def loadeventrecord 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
6 entries across 6 versions & 1 rubygems