Sha256: d8266803fd3616038e790b601f0ad0a3a8f48164d4dbd0a60551a9ba97b8989e
Contents?: true
Size: 669 Bytes
Versions: 4
Compression:
Stored size: 669 Bytes
Contents
# this method adds a new address record def saverwdshellconfiguration require 'fileutils' rwdshellname = "rwdwruby.cnf" newname = rwdshellname # grab the filename to create newdata =@a_rshellconfiguration 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 @newrshellconfigurationresult=newdata # show the record info in the browser rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
4 entries across 4 versions & 2 rubygems