code/superant.com.rwdtinkerbackwindow/openappletname.rb in rwdschedule-0.92 vs code/superant.com.rwdtinkerbackwindow/openappletname.rb in rwdschedule-0.93

- old
+ new

@@ -1,18 +1,18 @@ - 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 + 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