Sha256: 770b065dfc74d742aacd4e7cf5d0dfc4b8390868bd6a520b25c0ea4631e3b1a6
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
# this method adds a new address record def saveconfigurationrecord require 'fileutils' if @a_configurationfilename newname = "%s" % [@a_configurationfilename] # grab the filename to create newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rwdschedule-0.93 | code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb |