code/superant.com.schedule/loadeventrecord.rb in rwdschedule-0.92 vs code/superant.com.schedule/loadeventrecord.rb in rwdschedule-0.93

- old
+ new

@@ -1,30 +1,30 @@ # 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 + 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