# this method adds a new address record def saverwddialogconfiguration require 'fileutils' newname = "rwdwdialogmap.cnf" # grab the filename to create newdata = @a_diaconfigurationfile begin # exception trapped block fileName = File.join( ConfigurationDir, newname ) fd = File.open(fileName,"w") fd.print(newdata) # save the record info to the file fd.close @newconfigurationresult=newdata # show the record info in the browser rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end