Sha256: 56b7fd634268fea6be2fd68d3b35b627ba5c5ab20fd191b8c0f02251f485dea6

Contents?: true

Size: 893 Bytes

Versions: 24

Compression:

Stored size: 893 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

24 entries across 24 versions & 7 rubygems

Version Path
rwdtinker-1.52 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.43 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.45 code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
rwdtinker-1.47 code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb