Sha256: 6da606e08081811b0cd0f6523c786366bf5309b5d8991f397e1065a95a4f0671
Contents?: true
Size: 622 Bytes
Versions: 70
Compression:
Stored size: 622 Bytes
Contents
# this method saves the configuration record def saveconfigurationrecord require 'fileutils' if @a_configurationfilename newname = "%s" % [@a_configurationfilename] # grab the filename to create newdata =@a_configurationfile 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 end
Version data entries
70 entries across 70 versions & 16 rubygems