def openappletname require 'fileutils' nametext = "%s" % [@a_installlist] begin # exception trapped block fileName = "installed/" + nametext + ".inf" fd = File.open(fileName,"r") @displaytext = " " while ! fd.eof? @displaytext = fd.read end fd.close rescue @displaytext = "\n" + "error" end # exception rescue end