Sha256: 5828bbf5197d551ef9b8809841ea02af66d7961229e60eae7811bf17d0337b6b

Contents?: true

Size: 696 Bytes

Versions: 6

Compression:

Stored size: 696 Bytes

Contents

  # this method adds a new  record
  def savefoldlinkfile
   require 'fileutils'
    if ! @a_foldeditorlinkfile.empty?  # the document is not empty
   if ! @a_viewfoldlinkfile.empty?          # the filename is not empty
   fileName =   File.join($rwdfoldeditor_directory,@a_viewfoldlinkfile.to_s)  # grab the new filename to create
  
	
        begin # exception trapped block
       
        	fd = File.open(fileName,"w")
	        fd.print(  @a_foldeditorlinkfile) # save the record info to the file
	        fd.close
      
        rescue SystemCallError, StandardError
            $stderr.print "system call error: " + $!
        end # exception rescue
    end
    end
  end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
bigtinker-0.97 code/superant.com.foldeditor/savefoldlinkfile.rb
rwdfoldeditor-0.03 code/superant.com.foldeditor/savefoldlinkfile.rb
rwdfoldeditor-0.05 code/superant.com.foldeditor/savefoldlinkfile.rb
rwdfoldeditor-0.01 code/superant.com.foldeditor/savefoldlinkfile.rb
rwdfoldeditor-0.02 code/superant.com.foldeditor/savefoldlinkfile.rb
rwdfoldeditor-0.07 code/superant.com.foldeditor/savefoldlinkfile.rb