Sha256: 829e3855da34e18fe493eb90c89e665672208cb867e9a364e97c392b09835ce9

Contents?: true

Size: 621 Bytes

Versions: 4

Compression:

Stored size: 621 Bytes

Contents

  # this method adds a new  record
  def savegutenbergrecord
   require 'fileutils'
    if ! @a_gutenbergdata.empty?
   if ! @a_viewgutenberg.empty?
   fileName =   $rwdgutenberg_directory + "/" + @a_viewgutenberg.to_s + ".gut" # grab the new filename to create
  
	
        begin # exception trapped block
       
        	fd = File.open(fileName,"w")
	        fd.print(  @a_gutenbergdata) # 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

4 entries across 4 versions & 2 rubygems

Version Path
bigtinker-0.93 code/superant.com.gutenberg/savegutenbergrecord.rb
bigtinker-0.94 code/superant.com.gutenberg/savegutenbergrecord.rb
rwdgutenberg-0.04 code/superant.com.gutenberg/savegutenbergrecord.rb
rwdgutenberg-0.03 code/superant.com.gutenberg/savegutenbergrecord.rb