Sha256: d4f8c65400f00c7efa0bdf46908e3af4ebd6e40ec83ec32188bdd4192d435592
Contents?: true
Size: 958 Bytes
Versions: 2
Compression:
Stored size: 958 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rwdschedule-0.93 | code/superant.com.schedule/loadeventrecord.rb |
rwdschedule-0.94 | code/superant.com.schedule/loadeventrecord.rb |