def playcalcscript nametext = "%s" % [@a_calcscriptcmd] begin # exception trapped block fileName = "scripts/" + nametext + ".math" calcfile_contents = File.read( fileName) temp = eval( calcfile_contents) rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end