Sha256: 84694f53c7266ceda0a64d8c0ee55b826282a60ce1b720f62a00bc2df5ba3ad5
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
# create new gutenberg data file def gutenbergcreatefile filelocation = File.join(@a_searchdirectorygutenberg.strip, @a_newgutenbergdata.strip) $rwdtinkerlog.info "gutenbergcreatefile: #{filelocation}" begin if File.file?( filelocation) $rwdtinkerlog.debug "file already exists" else # create the file fileB=File.open(filelocation,"w") #deletes, opens the file fileB.write(@a_newfilegutenberg) #writes the doc into the file fileB.close end rescue $rwdtinkerlog.error "gutenbergcreatefile: file error" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rwdgutenberg-0.13 | code/superant.com.gutenberg/gutenbergcreatefile.rb |
rwdgutenberg-0.12 | code/superant.com.gutenberg/gutenbergcreatefile.rb |