Sha256: 48edc804b12ee58d43ef196a908f8cd1b4b6491be7d72b532c9ae9fda244892b
Contents?: true
Size: 635 Bytes
Versions: 19
Compression:
Stored size: 635 Bytes
Contents
# this method adds a new record def hypernotesavelinkrecord require 'fileutils' if ! @a_notelinksdata.empty? if ! @a_viewlinksnote.empty? fileName = "%s" % [@a_viewlinksnote] # grab the new filename to create begin # exception trapped block fd = File.open(fileName,"w") fd.print( @a_notelinksdata) # save the record info to the file fd.close p fileName p @a_notelinksdata rescue SystemCallError, StandardError $stderr.print "system call error: " + $! end # exception rescue end end end
Version data entries
19 entries across 17 versions & 3 rubygems