Sha256: 639e0fbd2a1a7438b6e587d6e82c7a8f100efd174e1a177af2cd344a7e0cd2ca
Contents?: true
Size: 922 Bytes
Versions: 3
Compression:
Stored size: 922 Bytes
Contents
# this method adds a new address record def saverwdmoviesconfiguration require 'fileutils' newname = "rwdmovies.cnf" # grab the filename to create newdata =@a_movconfigline1.to_s + "\n" + @a_movconfigline2.to_s + "\n" + @a_movconfigline3.to_s + "\n" + @a_movconfigline4.to_s + "\n" + @a_movconfigline5.to_s + "\n" + @a_movconfigline6.to_s + "\n" + @a_movconfigline7.to_s + "\n" + @a_movconfigline8.to_s + "\n" + @a_movconfigline9.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 @newmovconfigurationresult=newdata # show the record info in the browser rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end
Version data entries
3 entries across 3 versions & 1 rubygems