Sha256: fadf0187f6bdf7a615f6985557c647801cff0748cd9c8df8710de7ab331d0ba2
Contents?: true
Size: 492 Bytes
Versions: 13
Compression:
Stored size: 492 Bytes
Contents
def viewevent require 'fileutils' $currenteventtext = "%s" % [@a_viewevent] begin # exception trapped block fileName = $rwdschedule_directory + "/" + $currenteventtext + ".sch" fd = File.open(fileName,"r") @displayevent = " " while ! fd.eof? @displayevent = fd.read end fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
13 entries across 13 versions & 2 rubygems