Sha256: 3cef09f5e55f1d1bf56a7992c7e784674f67b62674c2f2e7c5c63d1ec9162934
Contents?: true
Size: 923 Bytes
Versions: 7
Compression:
Stored size: 923 Bytes
Contents
# this method adds a new address record def saverwdscheduleconfiguration require 'fileutils' newname = "rwdschedule.cnf" # grab the filename to create newdata =@a_schconfigline1.to_s + "\n" + @a_schconfigline2.to_s + "\n" + @a_schconfigline3.to_s + "\n" + @a_schconfigline4.to_s + "\n" + @a_schconfigline5.to_s + "\n" + @a_schconfigline6.to_s + "\n" + @a_schconfigline7.to_s + "\n" + @a_schconfigline8.to_s + "\n" + @a_schconfigline9.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
7 entries across 7 versions & 1 rubygems