# this method views an existing address record def loadscriptrecord require 'fileutils' @a_tmpscriptfilename = $currentscriptname begin # exception trapped block fileName = $shellscript_directory + "/" + $currentscriptname + ".sh" fd = File.open(fileName,"r") @a_scriptfirstline = fd.readline.chomp @a_scriptcommentline = fd.readline.chomp fd.close rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end