code/superant.com.rwdtinkerbackwindow/openappletname.rb in rwdgutenberg-0.03 vs code/superant.com.rwdtinkerbackwindow/openappletname.rb in rwdgutenberg-0.04
- old
+ new
@@ -1,18 +1,19 @@
- 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
+def openappletname
+ require 'fileutils'
+ nametext = "%s" % [@a_installlist]
- end
+ 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
+