Sha256: 5d7cf5c21e9c0235e33be2528f3074e1e789cf4e019f84d2c593a3dc04ca085f
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
# this method adds a new address record def saverwdaddressesconfiguration require 'fileutils' newname = "rwdaddresses.cnf" # grab the filename to create newdata =@a_adconfigline1.to_s + "\n" + @a_adconfigline2.to_s + "\n" + @a_adconfigline3.to_s + "\n" + @a_adconfigline4.to_s + "\n" + @a_adconfigline5.to_s + "\n" + @a_adconfigline6.to_s + "\n" + @a_adconfigline7.to_s + "\n" + @a_adconfigline8.to_s + "\n" + @a_adconfigline9.to_s + "\n" + @a_adconfigline10.to_s + "\n" + @a_adconfigline11.to_s + "\n" + @a_adconfigline12.to_s + "\n" + @a_adconfigline13.to_s + "\n" + @a_adconfigline14.to_s + "\n" + @a_adconfigline15.to_s + "\n" + @a_adconfigline16.to_s + "\n" + @a_adconfigline17.to_s + "\n" + @a_adconfigline18.to_s + "\n" + @a_adconfigline19.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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rwdaddresses-1.01 | code/superant.com.rwdaddresses/saveconfigurationrecord.rb |