Sha256: 766406dd317328167610379f86e4d873a4863568023baeb960495b2d52744b5e
Contents?: true
Size: 974 Bytes
Versions: 2
Compression:
Stored size: 974 Bytes
Contents
# this method views an existing address record def loadgutenbergrecord require 'fileutils' begin # exception trapped block tmpdirname = File.dirname(@a_viewgutenberghtml) tmpext = File.extname(@a_viewgutenberghtml) tmpfilename = File.basename(@a_viewgutenberghtml,"#{tmpext}") newname = tmpfilename.to_s + ".lnk" fileName = File.join(tmpdirname,newname) if File.file?( fileName) fd = File.open(fileName,"r") @a_gutenbergdata = fd.read fd.close else @a_gutenbergdata = "#{fileName} does not exit" end tmpnewname = tmpfilename.to_s + tmpext @a_viewgutenberg = File.join(tmpdirname,tmpnewname) rescue SystemCallError, StandardError $rwdtinkerlog.error "system call error: #{$!}" end # exception rescue end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rwdgutenberg-0.12 | code/superant.com.gutenberg/loadhtmlnoterecord.rb |
rwdgutenberg-0.13 | code/superant.com.gutenberg/loadhtmlnoterecord.rb |