def viewrubyscript require 'fileutils' $currentscriptname = "%s" % [@a_rubyscriptfilename] begin # exception trapped block fileName = $shellscript_directory+ "/" + $currentrubyscriptname + ".rb" fd = File.open(fileName,"r") @displayrubyscripttext = " " while ! fd.eof? @displayrubyscripttext = fd.read end fd.close rescue @displayrubyscripttext = "\n" + "error" end # exception rescue end