Sha256: 6cf7b2c8d9a8c985ee2a71f231f12185e93745a4a7d8c4262d158e4d639b159c

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

  # this method adds a new address record
  def saverwdgutenbergconfiguration
   require 'fileutils'
   
   newname = "rwdwgutenberg-" + RwdGutenbergVersion + ".cnf" # grab the filename to create
   newdata =@a_gutenconfigurationfile
	 
        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
rwdgutenberg-0.09 code/superant.com.gutenberg/saveconfigurationrecord.rb